Class: SimpleScripting::Argv::ExitWithCommandsHelpPrinting

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_scripting/argv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commands_definitionObject

Returns the value of attribute commands_definition

Returns:

  • (Object)

    the current value of commands_definition



23
24
25
# File 'lib/simple_scripting/argv.rb', line 23

def commands_definition
  @commands_definition
end

Instance Method Details

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