diff options
author | Taylor Yu <catalyst@torproject.org> | 2019-10-24 14:17:30 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2019-10-29 16:39:03 -0500 |
commit | 4c38fccb9bc0cfc9468b5f37d38830e30aea2739 (patch) | |
tree | 852747ded3dbe13e628a27b75c15c5dbf26b852e /doc | |
parent | 9a66b33229cc88b4490199618702b24f0076c085 (diff) | |
download | tor-4c38fccb9bc0cfc9468b5f37d38830e30aea2739.tar.gz tor-4c38fccb9bc0cfc9468b5f37d38830e30aea2739.zip |
Move command-line conf option description earlier
In tor.1.txt, move the paragraphs at the end of the COMMAND-LINE
OPTIONS section earlier. This text describes how the user can specify
configuration options on the command line.
Also clarify some wording and formatting.
Based on a patch by Swati Thacker. Part of ticket 32277.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tor.1.txt | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/doc/tor.1.txt b/doc/tor.1.txt index 05e7fc948a..de01cefbf2 100644 --- a/doc/tor.1.txt +++ b/doc/tor.1.txt @@ -37,6 +37,29 @@ Project's website. COMMAND-LINE OPTIONS -------------------- + +Tor has a powerful command-line interface. This section lists optional +arguments you can specify at the command line using the **`tor`** +command. + +Configuration options can be specified on the command line in the +format **`--`**_OptionName_ _OptionValue_, on the command line in the +format _OptionName_ _OptionValue_, or in a configuration file. For +instance, you can tell Tor to start listening for SOCKS connections on +port 9999 by passing either **`--SocksPort 9999`** or **`SocksPort +9999`** on the command line, or by specifying **`SocksPort 9999`** in +the configuration file. On the command line, quote option values that +contain spaces. For instance, if you want Tor to log all debugging +messages to **`debug.log`**, you must specify **`--Log "debug file +debug.log"`**. + +NOTE: Configuration options on the command line override those in +configuration files. See **<<conf-format,THE CONFIGURATION FILE +FORMAT>>** for more information. + +The following options in this section are only recognized on the +**`tor`** command line, not in a configuration file. + [[opt-h]] **-h**, **--help**:: Display a short help message and exit. @@ -145,18 +168,7 @@ COMMAND-LINE OPTIONS For example, the output sent to stdout will be of the form: "signing-cert-expiry: 2017-07-25 08:30:15 UTC" -Other options can be specified on the command-line in the format "--option -value", in the format "option value", or in a configuration file. For -instance, you can tell Tor to start listening for SOCKS connections on port -9999 by passing --SocksPort 9999 or SocksPort 9999 to it on the command line, -or by putting "SocksPort 9999" in the configuration file. You will need to -quote options with spaces in them: if you want Tor to log all debugging -messages to debug.log, you will probably need to say **--Log** `"debug file -debug.log"`. - -Options on the command line override those in configuration files. See the -next section for more information. - +[[conf-format]] THE CONFIGURATION FILE FORMAT ----------------------------- |