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



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

def print_help(output)
  output.puts "Valid commands:", "", "  " + commands_definition.keys.join(', ')
end