McA has asked for the wisdom of the Perl Monks concerning the following question:
just started to dig into App::Cmd and can't find the answer to the follworing question:
When I have defined global options with global_opt_spec how can I achieve that the usage of these options is printed when I call script help or script alone.
The command specific options are printed when you call script help command.
At the moment it seems to me that the only way is to call script --rubbish while --rubbish is an unknown option.
Hints appreciated.
Best regards
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Showing global options while using App::Cmd
by tobyink (Canon) on Sep 25, 2012 at 08:29 UTC | |
by McA (Priest) on Sep 25, 2012 at 08:52 UTC | |
|
Re: Showing global options while using App::Cmd
by McA (Priest) on Sep 25, 2012 at 09:16 UTC |