Explorar o código

The --version option should imply --quiet.

Patch from 'maker'.
Nick Mathewson %!s(int64=11) %!d(string=hai) anos
pai
achega
a80d8e09d3
Modificáronse 2 ficheiros con 5 adicións e 0 borrados
  1. 2 0
      changes/ticket6997
  2. 3 0
      src/or/main.c

+ 2 - 0
changes/ticket6997

@@ -0,0 +1,2 @@
+  o Minor bugfixes:
+    - Command-line option "--version" implies "--quiet". Closes ticket #6997.

+ 3 - 0
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) {