- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/utils/psParseErrorCodes (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psLib/utils/psParseErrorCodes
r8907 r24244 4 4 use Getopt::Long; 5 5 6 my @ErrorCodes = (); 7 my @ErrorDescriptions = (); 8 9 my $data = "psErrorCodes.dat"; 10 my $outdir = "."; 6 my $data; # Input data 7 my $outdir = "."; # Output directory 11 8 12 9 # Assign variables based on the presence of command line options to the script 13 10 GetOptions( 14 "data=s"=> \$data,15 "outdir=s" => \$outdir,16 "verbose"=> \$verbose,17 "help"=> \$help18 );11 "data=s" => \$data, 12 "outdir=s" => \$outdir, 13 "verbose" => \$verbose, 14 "help" => \$help 15 ); 19 16 20 if ($help) { 21 print "Usage: parseErrorCodes ", "[--data=dataFile] ", "[--help] ", 17 if ($help 18 or not defined $data) { 19 print "Usage: parseErrorCodes ", "[--data=dataFile] ", "[--outdir=directory] ", "[--help] ", 22 20 "[--verbose] filename\n\n"; 23 21 exit(0); … … 28 26 die "Can not open data file $data."; 29 27 } 28 29 my @ErrorCodes = (); 30 my @ErrorDescriptions = (); 30 31 31 32 print "Datafile:\n" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
