Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It works if I useUse Getopt::Long; Getopt::Long::Configure ("bundling"); if (!GetOptions( 'U:s' => \$upd, 'mod' => \$mod, 'res' => \$res, 'h' => \$help )) { usage(); exit(1); } if ($help) { usage(); exit(1); }
prog.pl -h
prog.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GetOptions and help
by wazoox (Prior) on Mar 16, 2006 at 12:11 UTC | |
by Anonymous Monk on Mar 16, 2006 at 12:31 UTC | |
by fishbot_v2 (Chaplain) on Mar 16, 2006 at 12:59 UTC | |
by chargrill (Parson) on Mar 16, 2006 at 13:15 UTC | |
by Anonymous Monk on Mar 16, 2006 at 13:26 UTC | |
|
Re: GetOptions and help
by pboin (Deacon) on Mar 16, 2006 at 12:48 UTC | |
by Anonymous Monk on Mar 16, 2006 at 13:01 UTC | |
by fishbot_v2 (Chaplain) on Mar 16, 2006 at 16:38 UTC |