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/plugouts/BasPlugout.pm

    r12459 r12546  
    3434use gsprintf 'gsprintf';
    3535use printusage;
     36use parse2;
    3637
    3738# suppress the annoying "subroutine redefined" warning that various
     
    111112    delete $self->{"info_only"};
    112113   
    113     if(!parse2::parse($args,$hashArgOptLists->{"ArgList"},$self))
     114    if(parse2::parse($args,$hashArgOptLists->{"ArgList"},$self) == -1)
    114115    {
    115116    my $classTempClass = bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.