]> git.donarmstrong.com Git - uiuc_igb_scripts.git/commitdiff
avoid using Pod::Simple because biocluster doesn't have it installed in the system...
authorDon Armstrong <don@donarmstrong.com>
Wed, 5 Aug 2015 16:43:08 +0000 (09:43 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 5 Aug 2015 16:43:08 +0000 (09:43 -0700)
dqsub

diff --git a/dqsub b/dqsub
index e0b9744405f90e3495aacfee6bd55062b4b49a98..3299b462480deef652ed83448b9439d93affa391 100755 (executable)
--- a/dqsub
+++ b/dqsub
@@ -10,7 +10,7 @@ use warnings;
 use strict;
 
 use Getopt::Long;
-use Pod::Usage;
+use Pod::Usage;
 
 =head1 NAME
 
@@ -101,8 +101,8 @@ GetOptions(\%options,
            'dir=s',
            '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};
 
 $DEBUG = $options{debug};
 
@@ -121,7 +121,8 @@ if ($options{interactive} and @ARGV) {
     push @USAGE_ERRORS,"Don't provide commands when you're asking for an interactive shell";
 }
 
-pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;
+# pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;
+print STDERR join("\n",@USAGE_ERRORS) and exit 1 if @USAGE_ERRORS;
 
 # OK. Generate the options to qsub which we'll be using
 my @qsub_options = generate_qsub_options(\%options);