Class: Inch::CLI::Command::Options::BaseObject

Inherits:
Base
  • Object
show all
Defined in:
lib/inch/cli/command/options/base_object.rb

Constant Summary

Constants included from YardoptsHelper

YardoptsHelper::VALID_YARD_SWITCHES

Instance Attribute Summary

Attributes inherited from Base

#ui

Attributes included from YardoptsHelper

#excluded, #yard_files

Instance Method Summary collapse

Methods inherited from Base

attribute, #verify

Methods included from YardoptsHelper

#parse_yardopts_options, #yardopts_options

Methods included from TraceHelper

#ui

Instance Method Details

#parse(args) ⇒ Object


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/inch/cli/command/options/base_object.rb', line 8

def parse(args)
  opts = OptionParser.new
  opts.banner = usage

  descriptions.each do |text|
    opts.separator '  ' + text
  end

  set_options(opts)
  parse_yardopts_options(opts, args)
  parse_options(opts, args)

  @object_names = parse_object_names(args)
  @paths = get_paths(args)
end

#set_options(opts) ⇒ Object


24
25
26
27
28
# File 'lib/inch/cli/command/options/base_object.rb', line 24

def set_options(opts)
  common_options(opts)

  yardopts_options(opts)
end