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
13 14 15 |
# File 'lib/simple_scripting/argv.rb', line 13 def commands_definition @commands_definition end |
Instance Method Details
#print_help(output, long_help) ⇒ Object
Note that :long_help is not used.
15 16 17 |
# File 'lib/simple_scripting/argv.rb', line 15 def print_help(output, long_help) output.puts "Valid commands:", "", " " + commands_definition.keys.join(', ') end |