From: Christophe CURIS <[email protected]>

Signed-off-by: Christophe CURIS <[email protected]>
---
 wmix/config.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/wmix/config.c b/wmix/config.c
index ee0a024..6a3c822 100644
--- a/wmix/config.c
+++ b/wmix/config.c
@@ -32,8 +32,10 @@
 #include "include/config.h"
 
 
-#define HELP_TEXT        \
-       "WMixer " VERSION " by [email protected] + [email protected]\n" \
+#define VERSION_TEXT \
+       "WMixer " VERSION " by [email protected] + [email protected]\n"
+
+#define HELP_TEXT \
        "usage:\n" \
        "  -d <dsp>  connect to remote X display\n" \
        "  -e <name> exclude channel, can be used many times\n" \
@@ -151,6 +153,7 @@ void parse_cli_options(int argc, char **argv)
                        break;
 
                case 'h':
+                       fputs(VERSION_TEXT, stdout);
                        fputs(HELP_TEXT, stdout);
                        exit(0);
                        break;
@@ -178,6 +181,9 @@ void parse_cli_options(int argc, char **argv)
 
        if (error_found)
                exit(EXIT_FAILURE);
+
+       if (config.verbose)
+               fputs(VERSION_TEXT, stdout);
 }
 
 /*
-- 
1.9.2


-- 
To unsubscribe, send mail to [email protected].

Reply via email to