]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
The --version option should imply --quiet.
authorNick Mathewson <nickm@torproject.org>
Mon, 1 Oct 2012 15:01:18 +0000 (11:01 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 1 Oct 2012 15:01:18 +0000 (11:01 -0400)
Patch from 'maker'.

changes/ticket6997 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/ticket6997 b/changes/ticket6997
new file mode 100644 (file)
index 0000000..0a33b37
--- /dev/null
@@ -0,0 +1,2 @@
+  o Minor bugfixes:
+    - Command-line option "--version" implies "--quiet". Closes ticket #6997.
index 635dcb4bd56550298cef5e068438292a5eee8768..74bb6967259d942c405c1594f025796d3d69f6f9 100644 (file)
@@ -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) {