From 2db061c32e448cc725b5baf9ba0f42acba9ec8f6 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 9 Oct 2009 23:11:33 +0100 Subject: Fixed documentation bug (Mike Place) diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 98c2896..697005a 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm @@ -254,7 +254,7 @@ plugins ); # 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 @@ plugins ); # Parse @ARGV and process standard arguments (e.g. usage, help, version) - $p->getopts; + $np->getopts; # Exit/return value methods - nagios_exit( CODE, MESSAGE ), -- cgit v0.10-9-g596f