Method: Thor::Argument#complete

Defined in:
lib/thor/parser/argument.rb

#completenil, ... (readonly)

Optional block to provide dynamic shell completion.

Returns:

  • This argument does not provide dynamic completion.

  • Arity 0 proc that will be called with no arguments to provide dynamic completion options.

  • Proc<(request:, klass:, command:) => Array<String>] Arity -1 proc that will be passed:

    As in the arity 0 case, must return an array of string completion options.



46
47
48
# File 'lib/thor/parser/argument.rb', line 46

def complete
  @complete
end