Method: ActionCommand::InputOutput#input

Defined in:
lib/action_command/input_output.rb

#input(sym, desc, opts = {}, &_block) ⇒ Object

Defines input for a command

Parameters:

  • sym (Symbol)

    symbol identifying the parameter

  • desc (String)

    description for use by internal developers, or on a rake task with rake your_task_name

  • opts (defaults to: {})

    Optional arguments.



129
130
131
# File 'lib/action_command/input_output.rb', line 129

def input(sym, desc, opts = {}, &_block)
  insert_io(@input, sym, desc, opts)
end