Class: SimpleScripting::Argv::ExitWithCommandsHelpPrinting
- Inherits:
-
Struct
- Object
- Struct
- SimpleScripting::Argv::ExitWithCommandsHelpPrinting
- Defined in:
- lib/simple_scripting/argv.rb
Instance Attribute Summary collapse
-
#commands_definition ⇒ Object
Returns the value of attribute commands_definition.
Instance Method Summary collapse
-
#print_help(output, long_help) ⇒ Object
Note that :long_help is not used.
Instance Attribute Details
#commands_definition ⇒ Object
Returns the value of attribute commands_definition
23 24 25 |
# File 'lib/simple_scripting/argv.rb', line 23 def commands_definition @commands_definition end |
Instance Method Details
#print_help(output, long_help) ⇒ Object
Note that :long_help is not used.
25 26 27 |
# File 'lib/simple_scripting/argv.rb', line 25 def print_help(output, long_help) output.puts "Valid commands:", "", " " + commands_definition.keys.join(', ') end |