Changeset 12545 for trunk/gsdl/bin/script/export.pl
- Timestamp:
- 2006-08-24T16:17:35+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/export.pl
r12361 r12545 235 235 236 236 my $hashParsingResult = {}; 237 my $blnParseFailed = "false";238 237 # general options available to all plugins 239 238 my $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options"); 240 # can have more than one collection name, so don't check num args left 239 240 # If parse returns -1 then something has gone wrong 241 if ($intArgLeftinAfterParsing == -1) 242 { 243 &PrintUsage::print_txt_usage($options, "{export.params}"); 244 die "\n"; 245 } 246 241 247 foreach my $strVariable (keys %$hashParsingResult) 242 248 { … … 280 286 } 281 287 282 if (scalar(@ARGV) == 0) { 288 # can have more than one collection name, 289 # if the first extra option is -h, then output the help 290 if (scalar(@ARGV) == 0 || (@ARGV && $ARGV[0] =~ /^\-+h/)) { 283 291 &PrintUsage::print_txt_usage($options, "{export.params}"); 284 292 die "\n";
Note:
See TracChangeset
for help on using the changeset viewer.