[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2255] Nagios-Plugin/trunk/lib/Nagios/Plugin.pm

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Sat Oct 10 00:13:40 CEST 2009


Revision: 2255
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2255&view=rev
Author:   dermoth
Date:     2009-10-09 22:13:27 +0000 (Fri, 09 Oct 2009)

Log Message:
-----------
Fixed documentation bug (Mike Place)

From: Ton Voon <ton.voon at opsera.com>

Modified Paths:
--------------
    Nagios-Plugin/trunk/lib/Nagios/Plugin.pm

Modified: Nagios-Plugin/trunk/lib/Nagios/Plugin.pm
===================================================================
--- Nagios-Plugin/trunk/lib/Nagios/Plugin.pm	2009-09-26 22:10:12 UTC (rev 2254)
+++ Nagios-Plugin/trunk/lib/Nagios/Plugin.pm	2009-10-09 22:13:27 UTC (rev 2255)
@@ -254,7 +254,7 @@
    );
 
    # add valid command line options and build them into your usage/help documentation.
-   $p->add_arg(
+   $np->add_arg(
      spec => 'warning|w=s',
      help => '-w, --warning=INTEGER:INTEGER .  See '
        . 'http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT '
@@ -262,7 +262,7 @@
    );
 
    # Parse @ARGV and process standard arguments (e.g. usage, help, version)
-   $p->getopts;
+   $np->getopts;
 
 
    # Exit/return value methods - nagios_exit( CODE, MESSAGE ), 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list