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