[Nagios-Plugin] Updated --extra-opts help text. Pod fix (Frank ...

Ton Voon tonvoon at users.sourceforge.net
Thu Apr 15 11:23:12 CEST 2010


 Module: Nagios-Plugin
 Branch: master
 Commit: a625872ee35399c0ff69d95d8695feecaab7e79c
 Author: tonvoon <ton.voon at opsera.com>
   Date: Thu Apr 15 08:31:45 2010 +0000
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/Nagios-Plugin;a=commit;h=a625872

Updated --extra-opts help text. Pod fix (Frank Wiegand - RT51872)

---

 Changes                     |    4 ++++
 lib/Nagios/Plugin.pm        |    2 +-
 lib/Nagios/Plugin/Getopt.pm |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

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<set_thresholds()> before C<check_threshold()>, 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 <nagios_exit>, 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=[<section>[@<config_file>]]\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)",





More information about the Commits mailing list