Changeset 10218 for trunk/gsdl/perllib/plugins/NULPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/NULPlug.pm
r9853 r10218 57 57 58 58 sub 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); 65 62 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)}; 72 65 73 66 my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs); 67 74 68 return bless $self, $class; 75 69 }
Note:
See TracChangeset
for help on using the changeset viewer.