[Bps-public-commit] r10211 - in RT-Client-Console: trunk/bin

dams at bestpractical.com dams at bestpractical.com
Sun Dec 30 18:59:14 EST 2007


Author: dams
Date: Sun Dec 30 18:59:14 2007
New Revision: 10211

Modified:
   RT-Client-Console/   (props changed)
   RT-Client-Console/trunk/bin/rtconsole

Log:
 r57 at pundit:  dams | 2007-12-30 23:55:55 +0000
 added --version. From Maddingue


Modified: RT-Client-Console/trunk/bin/rtconsole
==============================================================================
--- RT-Client-Console/trunk/bin/rtconsole	(original)
+++ RT-Client-Console/trunk/bin/rtconsole	Sun Dec 30 18:59:14 2007
@@ -21,9 +21,12 @@
                'config-file=s',
                'generate-config',
                'help',
-               'debug'
+               'version|V',
+               'debug',
               ) or usage();
+
     $options{help} and usage();
+    $options{version} and print "rtconsole v$RT::Client::Console::VERSION\n" and exit;
 
     # Unless debug is set, we redirect STDERR => /dev/null
     if (!$options{debug}) {
@@ -137,6 +140,10 @@
 
 Print this help
 
+=item --version
+
+Print the program name and version, then exit
+
 =item --debug
 
 Outputs errors and debug messages on STDERR. enable this to see what's going



More information about the Bps-public-commit mailing list