summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring/Plugin/Getopt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Monitoring/Plugin/Getopt.pm')
-rw-r--r--lib/Monitoring/Plugin/Getopt.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm
index 3575ce6..db98567 100644
--- a/lib/Monitoring/Plugin/Getopt.pm
+++ b/lib/Monitoring/Plugin/Getopt.pm
@@ -41,7 +41,7 @@ my @ARGS = ({
41 help => "-V, --version\n Print version information", 41 help => "-V, --version\n Print version information",
42 }, { 42 }, {
43 spec => 'extra-opts:s@', 43 spec => 'extra-opts:s@',
44 help => "--extra-opts=[section][\@file]\n Read options from an ini file. See http://nagiosplugins.org/extra-opts\n for usage and examples.", 44 help => "--extra-opts=[section][\@file]\n Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html\n for usage and examples.",
45 }, { 45 }, {
46 spec => 'timeout|t=i', 46 spec => 'timeout|t=i',
47 help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", 47 help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)",
@@ -534,8 +534,8 @@ processing for Nagios plugins
534 $ng->getopts; 534 $ng->getopts;
535 535
536 # Access arguments using named accessors or or via the generic get() 536 # Access arguments using named accessors or or via the generic get()
537 print $ng->warning; 537 print $ng->opts->warning;
538 print $ng->get('critical'); 538 print $ng->opts->get('critical');
539 539
540 540
541 541