Ignore:
Timestamp:
2003-06-24T14:30:33+12:00 (21 years ago)
Author:
mdewsnip
Message:

Commented out print_usage functions - plugins should now call $self->print_txt_usage() to display their usage text. Updates to the options of a plugin should be made in the $options and $arguments data structures at the top of the plugin.

File:
1 edited

Legend:

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

    r4744 r4785  
    7777             "allow_extra_options")) {
    7878    print STDERR "\nIncorrect options passed to HTMLPlug, check your collect.cfg configuration file\n";
    79     &print_usage();
     79    $self->print_txt_usage();
    8080    die "\n";
    8181    }
     
    8484}
    8585
    86 sub print_usage {
    87     print STDERR "\n  usage: plugin PSPlug [options]\n\n";
    88     print STDERR "  options:\n";
    89     print STDERR "   -extract_date               Extract date from PS header\n";
    90     print STDERR "   -extract_pages              Extract pages from PS header\n";
    91     print STDERR "   -extract_title              Extract title from PS header\n";
    92     print STDERR "\n\nNote! This is a \"poor man's\" ps to text converter. If you are serious, consider\n";
    93     print STDERR "using the PRESCRIPT package, which is available for download at\n   http://www.nzdl.org/html/software.html\n\n";
    94 }
     86sub print_usage {
     87    print STDERR "\n  usage: plugin PSPlug [options]\n\n";
     88    print STDERR "  options:\n";
     89    print STDERR "   -extract_date               Extract date from PS header\n";
     90    print STDERR "   -extract_pages              Extract pages from PS header\n";
     91    print STDERR "   -extract_title              Extract title from PS header\n";
     92    print STDERR "\n\nNote! This is a \"poor man's\" ps to text converter. If you are serious, consider\n";
     93    print STDERR "using the PRESCRIPT package, which is available for download at\n   http://www.nzdl.org/html/software.html\n\n";
     94}
    9595
    9696sub get_default_block_exp {
Note: See TracChangeset for help on using the changeset viewer.