Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r9853 r10218  
    5757
    5858sub new {
    59     my ($class) = @_;
    60     my $self = new BasPlug ($class, @_);
    61     $self->{'plugin_type'} = "NULPlug";
    62     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    63     my $option_list = $self->{'option_list'};
    64     push( @{$option_list}, $options );
     59    my ($class) = shift (@_);
     60    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     61    push(@$pluginlist, $class);
    6562
    66     if (!parsargv::parse(\@_,
    67              "allow_extra_options")) {
    68     print STDERR "\nIncorrect options passed to NULPlug, check your collect.cfg configuration file\n";
    69     $self->print_txt_usage("");  # Use default resource bundle
    70         die "\n";
    71     }
     63    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     64    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    7265
    73 
     66    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
     67   
    7468    return bless $self, $class;
    7569}
Note: See TracChangeset for help on using the changeset viewer.