App::Spec::Plugin::Help - App::Spec Plugin for help subcommand and options
This plugin is enabled in App::Spec by default.
This is a plugin which adds
-h|--help options to your app. Also for apps with subcommands it adds a subcommand
The help command can then be called with all existing subcommands, like this:
% app cmd1 % app cmd2 % app cmd2 cmd2a % app help % app help cmd1 % app help cmd2 % app help cmd2 cmd2a
This is the code which is executed when using
-h|--helpor the subcommand help.
This method is required by App::Spec::Role::Plugin::GlobalOptions.
This is required by App::Spec::Role::Plugin::Subcommand.
This method is called by App::Spec::Run after global options have been read.
For apps without subcommands it just sets the method to execute to App::Spec::Plugin::Help::cmd_help. No further processing is done.
For apps with subcommands it inserts
helpat the beginning of the commandline arguments and continues processing.