shithub: sox

Download patch

ref: 958370228883a94a934d30afe801dfaa53741c08
parent: 7e9702f153585b715f750c2767af2d41b8f9691e
author: robs <robs>
date: Sun Oct 26 03:21:52 EDT 2008

don't display version info twice with sox -V4

--- a/src/sox.c
+++ b/src/sox.c
@@ -1645,8 +1645,10 @@
 "--comment-file FILENAME  File containing comment text for the output file",
 ""};
 
-  display_SoX_version(stdout);
-  putchar('\n');
+  if (!(sox_globals.verbosity > 2)) {
+    display_SoX_version(stdout);
+    putchar('\n');
+  }
 
   if (message)
     fprintf(stderr, "Failed: %s\n\n", message);  /* N.B. stderr */