class TTY::Option::Parameter::Argument

Public Instance Methods

required?() click to toggle source

Required by default unless the arity allows any

@api public

# File lib/tty/option/parameter/argument.rb, line 12
def required?
  @settings.fetch(:required) { arity != -1 }
end