diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb index 061bbe07a..aeae3ec25 100644 --- a/lib/vagrant/cli.rb +++ b/lib/vagrant/cli.rb @@ -53,13 +53,13 @@ module Vagrant # We use the optionparser for this. Its just easier. We don't use # an optionparser above because I don't think the performance hits # of creating a whole object are worth checking only a couple flags. - opts = OptionParser.new do |opts| - opts.banner = "Usage: vagrant [-v] [-h] command []" - opts.separator "" - opts.on("-v", "--version", "Print the version and exit.") - opts.on("-h", "--help", "Print this help.") - opts.separator "" - opts.separator "Available subcommands:" + opts = OptionParser.new do |o| + o.banner = "Usage: vagrant [-v] [-h] command []" + o.separator "" + o.on("-v", "--version", "Print the version and exit.") + o.on("-h", "--help", "Print this help.") + o.separator "" + o.separator "Available subcommands:" # Add the available subcommands as separators in order to print them # out as well. @@ -69,11 +69,11 @@ module Vagrant end keys.sort.each do |key| - opts.separator " #{key}" + o.separator " #{key}" end - opts.separator "" - opts.separator "For help on any individual command run `vagrant COMMAND -h`" + o.separator "" + o.separator "For help on any individual command run `vagrant COMMAND -h`" end @env.ui.info(opts.help, :prefix => false)