Module: Commander
- Defined in:
- lib/commander/patches/decimal-integer.rb,
lib/commander/runner.rb,
lib/commander/methods.rb,
lib/commander/version.rb,
lib/commander/platform.rb,
lib/commander/configure.rb,
lib/commander/delegates.rb,
lib/commander/help_formatters.rb,
lib/commander/user_interaction.rb,
lib/commander/help_formatters/base.rb,
lib/commander/patches/priority_sort.rb,
lib/commander/patches/option_defaults.rb,
lib/commander/patches/validate_inputs.rb,
lib/commander/help_formatters/terminal.rb,
lib/commander/patches/implicit-short-tags.rb,
lib/commander/patches/help_formatter_binding.rb,
lib/commander/help_formatters/terminal_compact.rb,
lib/commander/command.rb
Overview
Patches the underling ruby OptionParser to prevent it from automatically generating short tags for options
Defined Under Namespace
Modules: Delegates, HelpFormatter, Methods, Patches, Platform, UI Classes: Command, Runner, SubCommandGroupError
Constant Summary collapse
- VERSION =
'1.2.0'.freeze
Class Method Summary collapse
Class Method Details
.configure(*configuration_opts, &configuration_block) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/commander/configure.rb', line 2 def configure(*configuration_opts, &configuration_block) configuration_module = Module.new configuration_module.extend Commander::Methods configuration_module.class_exec(*configuration_opts, &configuration_block) configuration_module.class_exec do run! end end |