Method: Ark::CLI::Argument#push

Defined in:
lib/ark/cli/argument.rb

#push(val) ⇒ Object

Push val onto this argument. Only valid for variadic args. For normal arguments, use #set instead.



90
91
92
93
94
95
# File 'lib/ark/cli/argument.rb', line 90

def push(val)
  unless self.variadic?
    raise ArgumentSetError, "Cannot push onto a normal argument. Use the #set method instead."
  end
  @value << val
end