Get rid of some ruby warnings due to shadowed variables
This commit is contained in:
parent
e8370f0098
commit
78a1e5726e
|
@ -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 [<args>]"
|
||||
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 [<args>]"
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue