Method: YARD::CLI::Display#parse_arguments
- Defined in:
- lib/yard/cli/display.rb
#parse_arguments(*args) ⇒ Object
Parses commandline options.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/yard/cli/display.rb', line 46 def parse_arguments(*args) opts = OptionParser.new opts. = "Usage: yard display [options] OBJECT [OTHER OBJECTS]" (opts) (opts) (opts, args) Registry.load @objects = args.map {|o| Registry.at(o) } # validation return false if @objects.any?(&:nil?) end |