|Keep It Simple, Stupid|
How can I configure the perl App::Cmd module to complain about incorrect optionsby ascobie (Initiate)
|on Jun 17, 2013 at 15:31 UTC||Need Help??|
ascobie has asked for the
wisdom of the Perl Monks concerning the following question:
I'm attempting to use the perl App::Cmd module and a simple test program works fine.
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?