Getopt-Yagow

 view release on metacpan or  search on metacpan

Yagow.pm  view on Meta::CPAN

   
            splice @_,$i,1;  # Supress $arg from argument list.
            $i--;
        }
    }

    $wrong_syntax = {-msg=>$default_msg,-verbose=>0} if ! defined $wrong_syntax;
    $help_usage =   { -verbose => 1 } if ! defined $help_usage;

    my @args = @_ ? @_ : @ARGV;
    local (@ARGV) = @args;

    #
    # Handle command line parameters
    #
    my @options = values %{ $this->{options} };
    my %used = ();
    unless( GetOptions(\%used, 'help|h|?!', @options)) 
    {
        $this->usage( $wrong_syntax );
    }

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.973 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )