http://www.perlmonks.org?node_id=1039398

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?

Thanks