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/TEXTPlug.pm

    r8121 r10218  
    5959
    6060sub new {
    61     my ($class) = @_;
    62     my $self = new BasPlug ($class, @_);
    63     $self->{'plugin_type'} = "TEXTPlug";
    64     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    65     my $option_list = $self->{'option_list'};
    66     push( @{$option_list}, $options );
     61    my ($class) = shift (@_);
     62    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     63    push(@$pluginlist, $class);
    6764
    68     if (!parsargv::parse(\@_,
    69              q^title_sub/.*/^, \$self->{'title_sub'},
    70              "allow_extra_options")) {
    71     print STDERR "\nIncorrect options passed to TEXTPlug, check your collect.cfg configuration file\n";
    72     $self->print_txt_usage("");  # Use default resource bundle
    73         die "\n";
    74     }
     65    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     66    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    7567
     68    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    7669
    7770    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.