diff options
author | Ton Voon <ton.voon@opsera.com> | 2009-10-09 23:11:33 +0100 |
---|---|---|
committer | Ton Voon <ton.voon@opsera.com> | 2009-10-09 23:11:33 +0100 |
commit | 2db061c32e448cc725b5baf9ba0f42acba9ec8f6 (patch) | |
tree | f714f1fd7ffbff877592f47b3618a6c4c65efcc9 | |
parent | 673108c6cd8c84f72db0ddb2997b96cbe28ba5ea (diff) | |
download | monitoring-plugin-perl-2db061c32e448cc725b5baf9ba0f42acba9ec8f6.tar.gz |
Fixed documentation bug (Mike Place)
-rw-r--r-- | lib/Nagios/Plugin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
254 | ); | 254 | ); |
255 | 255 | ||
256 | # add valid command line options and build them into your usage/help documentation. | 256 | # add valid command line options and build them into your usage/help documentation. |
257 | $p->add_arg( | 257 | $np->add_arg( |
258 | spec => 'warning|w=s', | 258 | spec => 'warning|w=s', |
259 | help => '-w, --warning=INTEGER:INTEGER . See ' | 259 | help => '-w, --warning=INTEGER:INTEGER . See ' |
260 | . 'http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT ' | 260 | . 'http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT ' |
@@ -262,7 +262,7 @@ plugins | |||
262 | ); | 262 | ); |
263 | 263 | ||
264 | # Parse @ARGV and process standard arguments (e.g. usage, help, version) | 264 | # Parse @ARGV and process standard arguments (e.g. usage, help, version) |
265 | $p->getopts; | 265 | $np->getopts; |
266 | 266 | ||
267 | 267 | ||
268 | # Exit/return value methods - nagios_exit( CODE, MESSAGE ), | 268 | # Exit/return value methods - nagios_exit( CODE, MESSAGE ), |