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
54 55 56 57 58 59 60 |
# File 'lib/yard/cli/command.rb', line 54 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 |