in reply to Re: Getopt::Declare not working
in thread Getopt::Declare not working
the -s option cannot be used with either -e or -t, and I want the command line parser to cause the program to die gracefully when this happens. Right now, the parser spits out an error ("you cant use -s with -(e|t)") and then program execution continues.my $args = new Getopt::Declare <<'EOPARAM'; [strict] -e <env> Collect data for systems in one env (can be used w +ith -t) -t <type> Collect data for one type of system (can be used +with -e) -s <systemname> Collect data for one system [excludes: -e -t] -- EOPARAM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getopt::Declare not working
by shmem (Chancellor) on Jul 06, 2006 at 16:09 UTC |