Changeset 10470
- Timestamp:
- 2005-08-10T16:30:08+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/explode_metadata_database.pl
r10338 r10470 26 26 my $arguments = 27 27 [ 28 { 'name' => "language", 29 'desc' => "{scripts.language}", 30 'type' => "string", 31 'reqd' => "no" }, 28 32 { 'name' => "plugin", 29 33 'desc' => "{explode.plugin}", … … 88 92 # parse the options 89 93 my $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options"); 94 95 foreach my $strVariable (keys %$hashParsingResult) 96 { 97 eval "\$$strVariable = \$hashParsingResult->{\"\$strVariable\"}"; 98 } 99 100 # If $language has been specified, load the appropriate resource bundle 101 # (Otherwise, the default resource bundle will be loaded automatically) 102 if ($language && $language =~ /\S/) { 103 &gsprintf::load_language_specific_resource_bundle($language); 104 } 105 106 if ($xml) { 107 &PrintUsage::print_xml_usage($options); 108 print "\n"; 109 return; 110 } 111 90 112 # There should one arg left after parsing 91 113 if($intArgLeftinAfterParsing > 1) … … 93 115 &PrintUsage::print_txt_usage($options, "{explode.params}"); 94 116 die "\n"; 95 }96 97 foreach my $strVariable (keys %$hashParsingResult)98 {99 eval "\$$strVariable = \$hashParsingResult->{\"\$strVariable\"}";100 }101 102 # If $language has been specified, load the appropriate resource bundle103 # (Otherwise, the default resource bundle will be loaded automatically)104 if ($language && $language =~ /\S/) {105 &gsprintf::load_language_specific_resource_bundle($language);106 }107 108 if ($xml) {109 &PrintUsage::print_xml_usage($options);110 print "\n";111 return;112 117 } 113 118
Note:
See TracChangeset
for help on using the changeset viewer.