diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-01 04:38:43 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-01 04:38:43 +0000 |
commit | 2645219b4c2140b434fc3710f108ab6993afbfed (patch) | |
tree | fe5344f3d5d0b328bd66a4e8f0624d922268e00c /src/or/config.c | |
parent | 401b5c26de8d83f6af105abe560a0adc63890873 (diff) | |
download | tor-2645219b4c2140b434fc3710f108ab6993afbfed.tar tor-2645219b4c2140b434fc3710f108ab6993afbfed.tar.gz |
r16322@catbus: nickm | 2007-11-01 00:26:15 -0400
Implement --quiet.
svn:r12306
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 71c6fef9f..7dd4042a9 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1195,7 +1195,8 @@ config_get_commandlines(int argc, char **argv, config_line_t **result) continue; } else if (!strcmp(argv[i],"--list-fingerprint") || !strcmp(argv[i],"--verify-config") || - !strcmp(argv[i],"--ignore-missing-torrc")) { + !strcmp(argv[i],"--ignore-missing-torrc") || + !strcmp(argv[i],"--quiet")) { i += 1; /* command-line option. ignore it. */ continue; } else if (!strcmp(argv[i],"--nt-service") || @@ -1203,6 +1204,7 @@ config_get_commandlines(int argc, char **argv, config_line_t **result) i += 1; continue; } + if (i == argc-1) { log_warn(LD_CONFIG,"Command-line option '%s' with no value. Failing.", argv[i]); |