in reply to Re: Re: getopt?
in thread getopt?
Brute force and ignorance suggests:
But note that GetOptions allows you to abbreviate the commands as long as their uniquely identifiable. So you can pass --f instead of --file, and therefore don't necessarily need getopts, provided you're willing to live with the double hyphen.@ARGV2=@ARGV; GetOptions(...); @ARGV=@ARGV2; getopts(...);
PS. I still don't understand the lest for the size of %args as an alternative to testing $help. If you supply 2 single hyphen parameters (possibly including -h) then you don't get the help message?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: getopt?
by premchai21 (Curate) on Oct 25, 2001 at 05:12 UTC | |
by chipmunk (Parson) on Oct 25, 2001 at 19:15 UTC | |
|
Re: Re: Re: Re: getopt?
by azool (Initiate) on Oct 25, 2001 at 22:33 UTC |