ascobie has asked for the wisdom of the Perl Monks concerning the following question:
However, if I run the program with an --option that I haven't configured in the opt_spec function (of the sub command I'm invoking), it doesn't complain about an invalid option. I would expect it to do so. Instead it just quietly ignores that option.
I can't see anyway of configuring App::Cmd to complain about invalid options.
Is this possible, or is each sub-command expected to do the checking itself?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I configure the perl App::Cmd module to complain about incorrect options
by tobyink (Canon) on Jun 17, 2013 at 15:54 UTC | |
by ascobie (Initiate) on Jun 18, 2013 at 08:50 UTC | |
|
Re: How can I configure the perl App::Cmd module to complain about incorrect options
by toolic (Bishop) on Jun 17, 2013 at 15:56 UTC |