Method: YARD::CLI::Command#parse_options
- Defined in:
- lib/yard/cli/command.rb
#parse_options(opts, args) ⇒ void (protected)
This method returns an undefined value.
Parses the option and gracefully handles invalid switches
51 52 53 54 55 56 57 |
# File 'lib/yard/cli/command.rb', line 51 def (opts, args) opts.parse!(args) rescue OptionParser::ParseError => err log.warn "Unrecognized/#{err.}" args.shift if args.first && args.first[0,1] != '-' retry end |