Fix argument parsing

This commit is contained in:
Eric Hartmann 2014-04-23 16:27:33 +02:00
parent 0eae5c0926
commit 2666f9e38d

View file

@ -7,6 +7,7 @@ module Vagrant
def initialize(argv, env) def initialize(argv, env)
super super
@argv
@env = env @env = env
end end
@ -16,7 +17,7 @@ module Vagrant
opts = OptionParser.new do |opts| opts = OptionParser.new do |opts|
opts.banner = "Usage: vagrant lxc sudoers" opts.banner = "Usage: vagrant lxc sudoers"
opts.separator "" opts.separator ""
opts.on('-u', '--user', "The user for which to create the policy (defaults to '#{options[:user]}')") do |u| opts.on('-u user', '--user user', String, "The user for which to create the policy (defaults to '#{options[:user]}')") do |u|
options[:user] = u options[:user] = u
end end
end end