Ignore:
Timestamp:
2003-06-20T14:22:34+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up and structures (representing the options of the plugin) in preparation for removing the print_usage() routines.

File:
1 edited

Legend:

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

    r3540 r4744  
    4949}
    5050
     51my $arguments =
     52    [ { 'name' => "split_exp",
     53    'desc' => "A perl regular expression to split input files into segments.",
     54    'type' => "string",
     55    'deft' => &get_default_split_exp(),
     56    'reqd' => "no" }
     57      ];
     58
    5159my $options = { 'name'     => "SplitPlug",
    52                  'desc'     => "SplitPlug is a plugin for splitting input files into segments that will then be individually processed. This plugin should not be called directly.  Instead, if you need to process input files that contain several documents, you should write a plugin with a process function that will handle one of those documents and have it inherit from SplitPlug.  See ReferPlug for an example.",
    53                      'inherits' => "yes" };
     60        'desc'     => "SplitPlug is a plugin for splitting input files into segments that will then be individually processed. This plugin should not be called directly.  Instead, if you need to process input files that contain several documents, you should write a plugin with a process function that will handle one of those documents and have it inherit from SplitPlug.  See ReferPlug for an example.",
     61        'inherits' => "yes",
     62            'args'     => $arguments };
    5463
    5564
Note: See TracChangeset for help on using the changeset viewer.