Class: BundleUpdateInteractive::CLI::Options
- Inherits:
-
Object
- Object
- BundleUpdateInteractive::CLI::Options
- Defined in:
- lib/bundle_update_interactive/cli/options.rb
Instance Attribute Summary collapse
-
#exclusively ⇒ Object
Returns the value of attribute exclusively.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize ⇒ Options
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
#exclusively ⇒ Object
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
8 9 10 11 12 13 14 |
# File 'lib/bundle_update_interactive/cli/options.rb', line 8 def parse(argv=ARGV) = new remaining = build_parser().parse!(argv.dup) raise Error, "update-interactive does not accept arguments. See --help for available options." if remaining.any? .freeze end |