Class: Vagrant::OptionParser

Inherits:
OptionParser
  • Object
show all
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

Constructor Details

#initialize(*_) ⇒ OptionParser

Returns a new instance of OptionParser.



29
30
31
32
33
34
# File 'lib/vagrant.rb', line 29

def initialize(*_)
  super
  Vagrant.default_cli_options.each do |opt_proc|
    opt_proc.call(self)
  end
end