in reply to Re: Getopt::Long return value
in thread Getopt::Long return value

I don't see what's wrong here (in the -cpu 1 -h 1 case).

If you look at @ARGV after the GetOptions call, it should contain the argument 1.

As the AM said, how does anyone know that the 1 is a mistaken argument? It looks like a file name to me (and to GetOptions)... what happens if you say -h 1 -cpu 1? It should complain.

Replies are listed 'Best First'.
Re: Re: Re: Getopt::Long return value
by PetaMem (Priest) on Jun 26, 2001 at 10:48 UTC
    It doesn´t:

    rj@satyr: pxp.pl -h 1 -cpu 1 Usage: elric [option] -c, --cpu set the number of CPUs (define parallelization) -h, --help print this usage information Number of CPUs here: 1 Goback was: 1
    Bug here?

    Ciao