Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Where the -s , -b and -u are handled by GetOptionsusage args.pl [-s] [-b] [-u] update [server <server>] [user <user>] [passwor +d <password>]
Can I handle the other arguments like update,server,user,password via GetOptions without having to use a hyphen in front ?GetOptions('help|h!' => \$help, 'b!' => \$backup, 'u!' => \$upd_sybase, 's!' => \$silent);
I understand there may be issues with mixing GetOptions functions and the contents of ARGV being destroyed when you call themargs.pl [-s] [-b] [-u] -update [-server <server>] [-user <user>] [-pas +sword <password>]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mixing command line arguments
by bpphillips (Friar) on Nov 02, 2004 at 15:39 UTC | |
by Fletch (Bishop) on Nov 02, 2004 at 16:34 UTC | |
by ikegami (Patriarch) on Nov 02, 2004 at 17:55 UTC | |
|
Re: Mixing command line arguments
by ikegami (Patriarch) on Nov 02, 2004 at 17:45 UTC | |
by revdiablo (Prior) on Nov 02, 2004 at 18:04 UTC |