X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=templates%2Fperl_script;h=1bdf052eb30807a568bb4af606d4e5e4fae6e384;hb=1a2afbd8bd7b61f1e3a58033a6f144ee8c1c350c;hp=05509d74b6438d5e1193388b65a848f1c5ea7c57;hpb=b8afffb79ed17914430e54d02069bef45adcabaa;p=lib.git diff --git a/templates/perl_script b/templates/perl_script index 05509d7..1bdf052 100755 --- a/templates/perl_script +++ b/templates/perl_script @@ -3,7 +3,7 @@ # and is released under the terms of the GNU GPL version 3, or any # later version, at your option. See the file README and COPYING for # more information. -# Copyright 2013 by Don Armstrong . +# Copyright 2014 by Don Armstrong . use warnings; @@ -18,12 +18,12 @@ SCRIPTNAME - DOES_SOMETHING =head1 SYNOPSIS -SCRIPT_NAME [options] +SCRIPTNAME [options] Options: - --debug, -d debugging level (Default 0) - --help, -h display this help - --man, -m display manual + --debug, -d debugging level (Default 0) + --help, -h display this help + --man, -m display manual =head1 OPTIONS @@ -53,12 +53,12 @@ SCRIPTNAME use vars qw($DEBUG); my %options = (debug => 0, - help => 0, - man => 0, - ); + help => 0, + man => 0, + ); GetOptions(\%options, - 'debug|d+','help|h|?','man|m'); + 'debug|d+','help|h|?','man|m'); pod2usage() if $options{help}; pod2usage({verbose=>2}) if $options{man}; @@ -67,7 +67,7 @@ $DEBUG = $options{debug}; my @USAGE_ERRORS; if (1) { - push @USAGE_ERRORS,"You must pass something"; + push @USAGE_ERRORS,"You must pass something"; } pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;