Fix argument parsing
This commit is contained in:
parent
0eae5c0926
commit
2666f9e38d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue