Method: Climate::ParsingMethods#arg
- Defined in:
- lib/climate/parser.rb
#arg(*args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/climate/parser.rb', line 5 def arg(*args) raise DefinitionError, "can not define a required argument after an " + "optional one" if cli_arguments.any?(&:optional?) cli_arguments << Argument.new(*args) end |