From 1f8410dd1914449ce52ffa8fd47a308c5b372e52 Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Mon, 11 Sep 2006 01:57:26 +0000 Subject: Add constants, nagios_exit, and nagios_die to Nagios::Plugin::Base. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1477 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin/Getopt.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/Nagios/Plugin/Getopt.pm') diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index d38dced..7f32c3b 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm @@ -5,7 +5,6 @@ package Nagios::Plugin::Getopt; -use 5.005003; use strict; use File::Basename; use Getopt::Long qw(:config no_ignore_case bundling); @@ -21,7 +20,7 @@ $VERSION = $Nagios::Plugin::Base::VERSION; my %DEFAULT = ( timeout => 15, verbose => 0, - licence => + license => "This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. It may be used, redistributed and/or modified under the terms of the GNU General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).", @@ -265,7 +264,7 @@ sub _init plugin => { default => $plugin }, blurb => 0, extra => 0, - license => { default => $DEFAULT{licence} }, + license => { default => $DEFAULT{license} }, timeout => { default => $DEFAULT{timeout} }, }); @@ -400,7 +399,7 @@ Short plugin description, included in the longer --help output License text, included in the longer --help output (see below for an example). By default, this is set to the standard nagios plugins -GPL licence text: +GPL license text: This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. It may be used, redistributed and/or modified under the terms of the GNU -- cgit v1.2.3-74-g34f1