summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-01 11:01:18 -0400
committerNick Mathewson <nickm@torproject.org>2012-10-01 11:01:18 -0400
commita80d8e09d3b5f393f2dc83148ef66c6e1d7f4015 (patch)
tree86b6a2f114adf80b64401b21741d3328ed14d840 /src/or/main.c
parentf128baf36c8378d40b82a2859f3c939c1d0f77dd (diff)
downloadtor-a80d8e09d3b5f393f2dc83148ef66c6e1d7f4015.tar.gz
tor-a80d8e09d3b5f393f2dc83148ef66c6e1d7f4015.zip
The --version option should imply --quiet.
Patch from 'maker'.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 635dcb4bd5..74bb696725 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2293,6 +2293,9 @@ tor_init(int argc, char *argv[])
quiet = 1;
if (!strcmp(argv[i], "--quiet"))
quiet = 2;
+ /* --version implies --quiet */
+ if (!strcmp(argv[i], "--version"))
+ quiet = 2;
}
/* give it somewhere to log to initially */
switch (quiet) {