Method: YARD::CLI::Display#parse_arguments

Defined in:
lib/yard/cli/display.rb

#parse_arguments(*args) ⇒ Object

Parses commandline options.

Parameters:

Since:

  • 0.8.6



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.banner = "Usage: yard display [options] OBJECT [OTHER OBJECTS]"
  general_options(opts)
  output_options(opts)
  parse_options(opts, args)

  Registry.load
  @objects = args.map {|o| Registry.at(o) }

  # validation
  return false if @objects.any?(&:nil?)
  verify_markup_options
end