]> git.donarmstrong.com Git - lib.git/blobdiff - templates/perl_script
options needs an indentation
[lib.git] / templates / perl_script
index 24254d5ad681174f86ab82fa58f4de7946983da2..6d40bb35baa48a5309e13c6cecb44484b70e53f8 100755 (executable)
@@ -1,9 +1,9 @@
-#! /usr/bin/perl
-# , and is released
-# under the terms of the GPL version 2, or any later version, at your
-# option. See the file README and COPYING for more information.
-# Copyright 2009 by Don Armstrong <don@donarmstrong.com>.
-# $Id$
+#!/usr/bin/perl
+# SCRIPTNAME DOES_SOMETHING
+# 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 <don@donarmstrong.com>.
 
 
 use warnings;
@@ -14,16 +14,16 @@ use Pod::Usage;
 
 =head1 NAME
 
- - 
+SCRIPTNAME - DOES_SOMETHING
 
 =head1 SYNOPSIS
 
- [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
 
@@ -45,6 +45,7 @@ Display this manual.
 
 =head1 EXAMPLES
 
+SCRIPTNAME
 
 =cut
 
@@ -52,12 +53,12 @@ Display this manual.
 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};
@@ -66,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;