Changeset 10255
- Timestamp:
- 2005-07-19T16:56:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/import.pl
r10215 r10255 45 45 use docprint; 46 46 use util; 47 use parsargv;48 47 use FileHandle; 49 48 use gsprintf 'gsprintf'; 50 49 use printusage; 51 50 use parse2; 51 52 use strict; 53 no strict 'refs'; # allow filehandles to be variables and vice versa 54 no strict 'subs'; # allow barewords (eg STDERR) as function arguments 52 55 53 56 my $oidtype_list = … … 221 224 $pluginfo, $sortmeta, $removeprefix, $removesuffix, 222 225 $archive_info_filename, $statsfile, 223 $archive_info, $processor, $out, $faillog, $collectdir, $gli );226 $archive_info, $processor, $out, $faillog, $collectdir, $gli, $language); 224 227 225 228 my $xml = 0; … … 230 233 my $blnParseFailed = "false"; 231 234 # general options available to all plugins 232 $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options");235 my $intArgLeftinAfterParsing = parse2::parse(\@ARGV,$arguments,$hashParsingResult,"allow_extra_options"); 233 236 # If there are more than one argument left after parsing, it mean user input too many arguments. 234 237 # Error occoured will return 0 235 238 if($intArgLeftinAfterParsing != 1) 236 239 { 237 $blnParseFailed = "true";238 }239 if($blnParseFailed eq "true")240 {241 240 &PrintUsage::print_txt_usage($options, "{import.params}"); 242 241 die "\n"; 243 242 } 243 244 244 foreach my $strVariable (keys %$hashParsingResult) 245 245 { … … 249 249 # If $language has been specified, load the appropriate resource bundle 250 250 # (Otherwise, the default resource bundle will be loaded automatically) 251 if ($language ) {251 if ($language && $language =~ /\S/) { 252 252 &gsprintf::load_language_specific_resource_bundle($language); 253 253 }
Note:
See TracChangeset
for help on using the changeset viewer.