Changeset 6983


Ignore:
Timestamp:
2004-03-09T15:06:40+13:00 (20 years ago)
Author:
kjdon
Message:

added in the info_only check, and now dies if is not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/HTML.pm

    r6968 r6983  
    6161    push( @{$option_list}, $options );
    6262
     63    if ($self->{'info_only'}) {
     64    # created from classinfo.pl - don't need to parse the arguments
     65    return bless $self, $class;
     66    }
     67
    6368    my ($title, $url);
    6469   
     
    7378    }
    7479
    75     if (!defined $url) {
     80    if (!$url) {
    7681    my $outhandle = $self->{'outhandle'};
    77     print $outhandle "Error: HTML classifier contains no 'url' option\n";
    78     die "\n";
     82    print $outhandle "HTML Error: required option -url not supplied\n";
     83    $self->print_txt_usage("");
     84    die "HTML Error: required option -url not supplied\n";
    7985    }
    8086
Note: See TracChangeset for help on using the changeset viewer.