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

    r9494 r10218  
    7474sub new
    7575{
    76     my $class = shift(@_);
    77 
    78     my $self = new SplitPlug($class, @_);
    79     if (!parsargv::parse(\@_,
    80              "allow_extra_options")) {
    81     die "\nIncorrect options passed to ProCitePlug, check your collect.cfg configuration file\n";
    82     }
    83 
    84     # To allow for proper inheritance of arguments
    85     my $option_list = $self->{'option_list'};
    86     push(@{$option_list}, $options);
    87     $self->{'plugin_type'} = "ProCitePlug";
     76    my ($class) = shift (@_);
     77    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     78    push(@$pluginlist, $class);
     79
     80    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     81    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     82
     83    my $self = (defined $hashArgOptLists)? new SplitPlug($pluginlist,$inputargs,$hashArgOptLists): new SplitPlug($pluginlist,$inputargs);
    8884
    8985    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.