Class: Inch::CLI::Command::Options::BaseList

Inherits:
Base
  • Object
show all
Includes:
API::Options::Filter::DefaultAttributeValues
Defined in:
lib/inch/cli/command/options/base_list.rb

Constant Summary

Constants included from API::Options::Filter::DefaultAttributeValues

API::Options::Filter::DefaultAttributeValues::DEFAULT_VISIBILITY

Constants included from YardoptsHelper

YardoptsHelper::VALID_YARD_SWITCHES

Instance Attribute Summary

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



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/inch/cli/command/options/base_list.rb', line 16

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)

  @paths = get_paths(args)
end

#set_options(opts) ⇒ Object



31
32
33
34
35
36
# File 'lib/inch/cli/command/options/base_list.rb', line 31

def set_options(opts)
  list_options(opts)
  common_options(opts)

  yardopts_options(opts)
end