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

    r9853 r10218  
    6363
    6464sub new {
    65     my $class = shift (@_);
    66     if ($class eq "ConvertToRogPlug" && defined $_[0]) {$class = shift (@_);}
    67     my $self;
    68     # parsargv::parse might modify the list, so we do this by creating a copy
    69     # of the argument list.
    70     my @arglist = @_;
    71     my ($plugin_name) = $class->parse_args(\@_);
    72 
    73     $self = new RogPlug ($class, @arglist);
     65    my ($class) = shift (@_);
     66    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     67    push(@$pluginlist, $class);
     68
     69    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     70    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     71
     72    my $self = (defined $hashArgOptLists)? new RogPlug($pluginlist,$inputargs,$hashArgOptLists): new RogPlug($pluginlist,$inputargs);
     73
    7474    $self->{'convert_to'} = "Rog";
    7575    $self->{'convert_to_ext'} = "rog";
    76     $self->{'plugin_type'} = "ConvertToRogPlug";
    77     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    78     my $option_list = $self->{'option_list'};
    79     push( @{$option_list}, $options );
    8076
    8177    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.