From a625872ee35399c0ff69d95d8695feecaab7e79c Mon Sep 17 00:00:00 2001 From: tonvoon Date: Thu, 15 Apr 2010 08:31:45 +0000 Subject: Updated --extra-opts help text. Pod fix (Frank Wiegand - RT51872) diff --git a/Changes b/Changes index 1679d1c..64b8a56 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl module Nagios::Plugin. +0.34 15th April 2010 + - Amended standard --extra-opts help + - pod fix (Frank Wiegand - RT51872) + 0.33 5th June 2009 - Fixed infinite loop when invalid performance data with multiple = were present diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 82bbfcb..cdc3ef8 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm @@ -507,7 +507,7 @@ WARNING constant. The thresholds may be: 2. explicitly set by calling C before C, or, 3. implicitly set by command-line parameters -w, -c, --critical or - --warning, if you have run C<$plugin->getopts()>. + --warning, if you have run C<< $plugin->getopts() >>. The return value is ready to pass to C , e . g ., diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index 0cf8f73..14aab03 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm @@ -38,7 +38,7 @@ my @ARGS = ({ help => "-V, --version\n Print version information", }, { spec => 'extra-opts:s@', - help => "--extra-opts=[
[@]]\n Section and/or config_file from which to load extra options (may repeat)", + help => "--extra-opts=[section][\@file]\n Read options from an ini file. See http://nagiosplugins.org/extra-opts for usage", }, { spec => 'timeout|t=i', help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", -- cgit v0.10-9-g596f