Changeset 15918


Ignore:
Timestamp:
2008-06-09T13:36:30+12:00 (16 years ago)
Author:
kjdon
Message:

tidied up new method to match other plugins

Location:
gsdl/trunk/perllib/plugins
Files:
3 edited

Legend:

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

    r15887 r15918  
    3131    push(@$pluginlist, $class);
    3232
    33     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    34     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     33    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     34    push(@{$hashArgOptLists->{"OptList"}},$options);
    3535
    3636    my $self = new PrintInfo($pluginlist, $inputargs, $hashArgOptLists,1);
  • gsdl/trunk/perllib/plugins/ExcelPlugin.pm

    r15872 r15918  
    5656    push(@$pluginlist, $class);
    5757
    58     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    59     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     58    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     59    push(@{$hashArgOptLists->{"OptList"}},$options);
    6060   
    6161    my $self = new ConvertBinaryFile($pluginlist, $inputargs, $hashArgOptLists);
  • gsdl/trunk/perllib/plugins/UnknownPlugin.pm

    r15872 r15918  
    104104    push(@$pluginlist, $class);
    105105
    106     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    107     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     106    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     107    push(@{$hashArgOptLists->{"OptList"}},$options);
    108108
    109109    my $self = new BasePlugin($pluginlist, $inputargs, $hashArgOptLists);
Note: See TracChangeset for help on using the changeset viewer.