From a9e61b4a6b89b6dcf73fe75d1662a0ad877279c1 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 8 Dec 2014 13:15:26 +0100 Subject: correct getopt help its not true that the options are available via the main Monitoring::Plugin object. Instead you have to fetch them from the opts object. Signed-off-by: Sven Nierlein diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm index ebdd559..63f751c 100644 --- a/lib/Monitoring/Plugin/Getopt.pm +++ b/lib/Monitoring/Plugin/Getopt.pm @@ -524,8 +524,8 @@ processing for Nagios plugins $ng->getopts; # Access arguments using named accessors or or via the generic get() - print $ng->warning; - print $ng->get('critical'); + print $ng->opts->warning; + print $ng->opts->get('critical'); -- cgit v0.10-9-g596f