From 2666f9e38d86d3dea1a60e23fac279e21dbb0d04 Mon Sep 17 00:00:00 2001 From: Eric Hartmann Date: Wed, 23 Apr 2014 16:27:33 +0200 Subject: [PATCH] Fix argument parsing --- lib/vagrant-lxc/command/sudoers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/command/sudoers.rb b/lib/vagrant-lxc/command/sudoers.rb index 8149d10..d99ab34 100644 --- a/lib/vagrant-lxc/command/sudoers.rb +++ b/lib/vagrant-lxc/command/sudoers.rb @@ -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