Ignore:
Timestamp:
2006-08-24T16:19:13+12:00 (18 years ago)
Author:
kjdon
Message:

changed parse2::parse so that it returns -1 on error, 0 on success, or if allow_extra_options is specified, then on success returns the number of args left over.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/downloaders/BasDownload.pm

    r11783 r12546  
    3333use gsprintf 'gsprintf';
    3434use printusage;
     35use parse2;
    3536
    3637# suppress the annoying "subroutine redefined" warning that various
     
    7374    delete $self->{"info_only"};
    7475   
    75     if(!parse2::parse($args,$hashArgOptLists->{"ArgList"},$self))
     76    if(parse2::parse($args,$hashArgOptLists->{"ArgList"},$self) == -1)
    7677    {
    7778    my $classTempClass = bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.