Class: Vagrant::OptionParser
- Inherits:
-
OptionParser
- Object
- OptionParser
- Vagrant::OptionParser
- Defined in:
- lib/vagrant.rb
Overview
This is a customized OptionParser for Vagrant plugins. It will automatically add any default CLI options defined outside of command implementations to the local option parser instances in use
Instance Method Summary collapse
-
#initialize(*_) ⇒ OptionParser
constructor
A new instance of OptionParser.
Constructor Details
#initialize(*_) ⇒ OptionParser
Returns a new instance of OptionParser.
36 37 38 39 40 41 |
# File 'lib/vagrant.rb', line 36 def initialize(*_) super Vagrant..each do |opt_proc| opt_proc.call(self) end end |