]> git.donarmstrong.com Git - lib.git/commitdiff
update indenting in perl script
authorDon Armstrong <don@donarmstrong.com>
Wed, 16 Oct 2013 19:19:30 +0000 (12:19 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 16 Oct 2013 19:19:30 +0000 (12:19 -0700)
templates/perl_script

index 736bb53d477fef76c5117b6d63e2e8e2f82d55ea..e9fdf1d4dee2274c8a7d07dc324d0161937f12e4 100755 (executable)
@@ -20,10 +20,10 @@ SCRIPTNAME - DOES_SOMETHING
 
 SCRIPTNAME [options]
 
 
 SCRIPTNAME [options]
 
- Options:
-  --debug, -d debugging level (Default 0)
-  --help, -h display this help
-  --man, -m display manual
+Options:
+   --debug, -d debugging level (Default 0)
+   --help, -h display this help
+   --man, -m display manual
 
 =head1 OPTIONS
 
 
 =head1 OPTIONS
 
@@ -53,12 +53,12 @@ SCRIPTNAME
 use vars qw($DEBUG);
 
 my %options = (debug           => 0,
 use vars qw($DEBUG);
 
 my %options = (debug           => 0,
-              help            => 0,
-              man             => 0,
-              );
+               help            => 0,
+               man             => 0,
+              );
 
 GetOptions(\%options,
 
 GetOptions(\%options,
-          'debug|d+','help|h|?','man|m');
+           'debug|d+','help|h|?','man|m');
 
 pod2usage() if $options{help};
 pod2usage({verbose=>2}) if $options{man};
 
 pod2usage() if $options{help};
 pod2usage({verbose=>2}) if $options{man};
@@ -67,7 +67,7 @@ $DEBUG = $options{debug};
 
 my @USAGE_ERRORS;
 if (1) {
 
 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;
 }
 
 pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;