Method: Climate::ParsingMethods#parse
- Defined in:
- lib/climate/parser.rb
#parse(arguments) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/climate/parser.rb', line 64 def parse(arguments) parser = self.trollop_parser = parser.parse(arguments) # it would get weird if we allowed arguments alongside options, so # lets keep it one or t'other arguments, leftovers = if @stop_on [[], parser.leftovers] else [self.check_arguments(parser.leftovers), []] end [arguments, , leftovers] end |