[Nagiosplug-checkins] Nagios-Plugin/lib/Nagios/Plugin Getopt.pm, 1.2, 1.3

Ton Voon tonvoon at users.sourceforge.net
Thu Aug 31 10:34:26 CEST 2006


Update of /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25984/lib/Nagios/Plugin

Modified Files:
	Getopt.pm 
Log Message:
Support multiple -v options for verbosity level


Index: Getopt.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/Getopt.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Getopt.pm	31 Aug 2006 08:19:01 -0000	1.2
+++ Getopt.pm	31 Aug 2006 08:34:24 -0000	1.3
@@ -41,8 +41,8 @@
     help => "-t, --timeout=INTEGER\n   Seconds before plugin times out (default: %s)",
     default => $DEFAULT{timeout},
   }, {
-    spec => 'verbose|v',
-    help => "-v, --verbose\n   Show details for command-line debugging",
+    spec => 'verbose|v+',
+    help => "-v, --verbose\n   Show details for command-line debugging (can repeat up to 3 times)",
     default => $DEFAULT{verbose},
   },
 );
@@ -467,7 +467,7 @@
    -t, --timeout=INTEGER
      Seconds before plugin times out (default: 15)
    -v, --verbose
-     Show details for command-line debugging
+     Show details for command-line debugging (can repeat up to 3 times)
 
 
 =head2 ARGUMENTS
@@ -506,7 +506,7 @@
 
 =item exclude|X=s@
 
-=item verbose|v
+=item verbose|v+
 
 =back
 





More information about the Commits mailing list