Class: BundleUpdateInteractive::CLI::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/bundle_update_interactive/cli/options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



48
49
50
# File 'lib/bundle_update_interactive/cli/options.rb', line 48

def initialize
  @exclusively = []
end

Instance Attribute Details

#exclusivelyObject

Returns the value of attribute exclusively.



46
47
48
# File 'lib/bundle_update_interactive/cli/options.rb', line 46

def exclusively
  @exclusively
end

Class Method Details

.parse(argv = ARGV) ⇒ Object

Raises:



8
9
10
11
12
13
14
# File 'lib/bundle_update_interactive/cli/options.rb', line 8

def parse(argv=ARGV)
  options = new
  remaining = build_parser(options).parse!(argv.dup)
  raise Error, "update-interactive does not accept arguments. See --help for available options." if remaining.any?

  options.freeze
end