Changeset 12545 for trunk/gsdl/bin/script/exportcol.pl
- Timestamp:
- 2006-08-24T16:17:35+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/exportcol.pl
r11944 r12545 97 97 98 98 my $hashParsingResult = {}; 99 my $blnParseFailed = "false"; 99 100 100 # parse options 101 101 my $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options"); 102 # don't care how many args are left - can have multiple collection names 102 103 # If parse returns -1 then something has gone wrong 104 if ($intArgLeftinAfterParsing == -1) 105 { 106 &PrintUsage::print_txt_usage($options, "{exportcol.params}"); 107 die "\n"; 108 } 109 103 110 foreach my $strVariable (keys %$hashParsingResult) 104 111 { … … 122 129 } 123 130 131 # can have more than one collection name, 132 # if the first extra option is -h, then output the help 133 if (scalar(@ARGV) == 0 || (@ARGV && $ARGV[0] =~ /^\-+h/)) { 134 &PrintUsage::print_txt_usage($options, "{exportcol.params}"); 135 die "\n"; 136 } 137 124 138 my @coll_list = @ARGV; 125 126 if (not @coll_list) { # empty list127 &PrintUsage::print_txt_usage($options, "{exportcol.params}");128 exit(1);129 }130 139 131 140 my $close_out = 0;
Note:
See TracChangeset
for help on using the changeset viewer.