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
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) ⇒ Object
24 25 26 |
# File 'lib/simple_scripting/argv.rb', line 24 def print_help(output) output.puts "Valid commands:", "", " " + commands_definition.keys.join(', ') end |