Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
b9617322
Commit
b9617322
authored
Mar 02, 2004
by
Roger Dingledine
Browse files
add --version, note that --help is probably obsolete
svn:r1195
parent
1147289d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
b9617322
...
...
@@ -328,10 +328,10 @@ static int config_assign_default(or_options_t *options) {
/* prints the usage of tor. */
static
void
print_usage
(
void
)
{
printf
(
"tor -f <torrc> [args]
\n
"
"See man page for more options.
\n\n
"
"See man page for more options.
This -h is probably obsolete.
\n\n
"
"-b <bandwidth>
\t\t
bytes/second rate limiting
\n
"
"-d <file>
\t\t
Debug file
\n
"
"-m <max>
\t\t
Max number of connections
\n
"
//
"-m <max>\t\tMax number of connections\n"
"-l <level>
\t\t
Log level
\n
"
"-r <file>
\t\t
List of known routers
\n
"
);
printf
(
"
\n
Client options:
\n
"
...
...
@@ -429,6 +429,11 @@ int getconfig(int argc, char **argv, or_options_t *options) {
exit
(
0
);
}
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--version"
)))
{
printf
(
"Tor version %s.
\n
"
,
VERSION
);
exit
(
0
);
}
/* learn config file name, get config lines, assign them */
i
=
1
;
while
(
i
<
argc
-
1
&&
strcmp
(
argv
[
i
],
"-f"
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment