Ignore:
Timestamp:
2005-09-22T17:03:15+12:00 (19 years ago)
Author:
kjdon
Message:

now prints out some gli tags when bad args are encountered for plugins and classifiers ($gli not set here, so just printed them always). Also, for BasPlug, set up the encoding values outside of new(), otherwise the list gets added in multiple times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r10579 r10620  
    7272    [ { 'name' => "auto",
    7373    'desc' => "{BasPlug.input_encoding.auto}" } ];
     74
     75my $e = $encodings::encodings;
     76foreach my $enc (sort {$e->{$a}->{'name'} cmp $e->{$b}->{'name'}} keys (%$e))
     77{
     78    my $hashEncode =
     79    {'name' => $enc,
     80     'desc' => $e->{$enc}->{'name'}};
     81   
     82    push(@{$unicode_list},$hashEncode);
     83}
     84
     85push(@{$auto_unicode_list},@{$unicode_list});
    7486
    7587my $arguments =
     
    355367    # Set Encodings to the list!!
    356368
    357     my $e = $encodings::encodings;
    358     foreach my $enc (sort {$e->{$a}->{'name'} cmp $e->{$b}->{'name'}} keys (%$e))
    359     {
    360     my $hashEncode =
    361         {'name' => $enc,
    362          'desc' => $e->{$enc}->{'name'}};
    363 
    364     push(@{$unicode_list},$hashEncode);
    365     }
    366 
    367     push(@{$auto_unicode_list},@{$unicode_list});
    368369
    369370    # Start the BasPlug Constructor
     
    399400    {
    400401    my $classTempClass = bless $self, $class;
     402    print STDERR "<BadPlugin p=$plugin_name>\n";
    401403    &gsprintf(STDERR, "\n{BasPlug.bad_general_option}\n", $plugin_name);
    402404    $classTempClass->print_txt_usage("");  # Use default resource bundle
Note: See TracChangeset for help on using the changeset viewer.