From f2aa8f510828ddfb165f84ecc13aaf29d7bdfb4d Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 31 Aug 2006 08:34:24 +0000 Subject: Support multiple -v options for verbosity level git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1472 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin/Getopt.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Nagios') diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index d291b2f..1903e8c 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm @@ -41,8 +41,8 @@ my @ARGS = ({ 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 @@ example: -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 @@ and so on. The following are some examples: =item exclude|X=s@ -=item verbose|v +=item verbose|v+ =back -- cgit v1.2.3-74-g34f1