Module: EacCli::RunnerWith::Help
- Defined in:
- lib/eac_cli/runner_with/help.rb,
lib/eac_cli/runner_with/help/builder.rb,
lib/eac_cli/runner_with/help/builder/alternative.rb
Defined Under Namespace
Classes: Builder
Instance Method Summary collapse
Instance Method Details
#help_run ⇒ Object
23 24 25 26 27 28 |
# File 'lib/eac_cli/runner_with/help.rb', line 23 def help_run return unless show_help? puts help_text raise ::EacCli::Runner::Exit end |
#help_text ⇒ Object
30 31 32 33 34 |
# File 'lib/eac_cli/runner_with/help.rb', line 30 def help_text r = ::EacCli::RunnerWith::Help::Builder.new(self.class.runner_definition).to_s r += help_extra_text if respond_to?(:help_extra_text) r end |
#show_help? ⇒ Boolean
36 37 38 |
# File 'lib/eac_cli/runner_with/help.rb', line 36 def show_help? parsed.help? && !if_respond(:run_subcommand?, false) end |