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)
super
@argv
@env = env
end
@ -16,7 +17,7 @@ module Vagrant
opts = OptionParser.new do |opts|
opts.banner = "Usage: vagrant lxc sudoers"
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
end
end