Changeset 12545 for trunk/gsdl/bin/script/explode_metadata_database.pl
- Timestamp:
- 2006-08-24T16:17:35+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/explode_metadata_database.pl
r12290 r12545 98 98 99 99 my $hashParsingResult = {}; 100 my $blnParseFailed = "false";101 100 # parse the options 102 101 my $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options"); 102 103 # If parse returns -1 then something has gone wrong 104 if ($intArgLeftinAfterParsing == -1) 105 { 106 &PrintUsage::print_txt_usage($options, "{explode.params}"); 107 die "\n"; 108 } 103 109 104 110 foreach my $strVariable (keys %$hashParsingResult) … … 119 125 } 120 126 121 # There should one arg left after parsing 122 if($intArgLeftinAfterParsing > 1) 127 # There should one arg left after parsing (the filename) 128 # Or the user may have specified -h, in which case we output the usage 129 if($intArgLeftinAfterParsing != 1 || (@ARGV && $ARGV[0] =~ /^\-+h/)) 123 130 { 124 131 &PrintUsage::print_txt_usage($options, "{explode.params}");
Note:
See TracChangeset
for help on using the changeset viewer.