Ignore:
Timestamp:
2002-11-18T17:43:56+13:00 (21 years ago)
Author:
kjdon
Message:

added John T's changes into CVS - added info to enable retrieval of usage info in xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/RecPlug.pm

    r3116 r3540  
    106106use XML::Parser;
    107107
     108my $arguments = [ { 'name' => "block_exp",
     109            'desc' => "Files matching this regular expression will be blocked from being passed to any later plugins in the list. This has no real effect other than to prevent lots of warning messages about input files you don't care about. Each plugin might have a default block_exp. e.g. by default HTMLPlug blocks any files with .gif, .jpg, .jpeg, .png or .css file extensions.",
     110            'type' => "string",
     111            'deft' => "CVS",
     112            'reqd' => "no" },
     113          { 'name' => "use_metadata_files",
     114            'desc' => "Read metadata from metadata XML files.",
     115            'type' => "flag",
     116            'reqd' => "no" } ];
     117
     118my $options = { 'name'     => "RecPlug",
     119        'desc'     => "RecPlug is a plugin which recurses through directories processing
     120# each file it finds. For detailed comments edit <GSDLHOME>/perllib/plugins/RecPlug.pm .",
     121            'inherits' => "yes",
     122            'args'     => $arguments };
     123
    108124sub print_usage {
    109125    my ($plugin_name) = @_;
     
    124140    $self = new BasPlug ($class, @_);
    125141   
     142    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     143    my $option_list = $self->{'option_list'};
     144    push( @{$option_list}, $options );
     145
    126146    if (!parsargv::parse(\@_,
    127147             q^use_metadata_files^, \$self->{'use_metadata_files'},
Note: See TracChangeset for help on using the changeset viewer.