Method: Rodish::DSL#args
- Defined in:
- lib/rodish/dsl.rb
#args(args) ⇒ Object
Set the number of arguments supported by this command. The default is 0. To support a fixed number of arguments, pass an Integer. To support a variable number of arguments, pass a Range.
59 60 61 |
# File 'lib/rodish/dsl.rb', line 59 def args(args) @command.num_args = args end |