Fixes #10723: Fix bug instance var in Vagrant Cloud CLI optparse
This commit uses the correct instance variable for the optparse library when reading in the command line flags for various Vagrant Cloud CLI commands.
This commit is contained in:
parent
fbe44f1f48
commit
5b3c6b8ad4
|
@ -19,7 +19,7 @@ module VagrantPlugins
|
|||
o.on("-d", "--description DESCRIPTION", String, "Full description of the box") do |d|
|
||||
options[:description] = d
|
||||
end
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
o.on("-s", "--short-description DESCRIPTION", String, "Short description of the box") do |s|
|
||||
|
|
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
o.separator "Options:"
|
||||
o.separator ""
|
||||
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
o.separator "Options:"
|
||||
o.separator ""
|
||||
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
o.separator "Options:"
|
||||
o.separator ""
|
||||
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
o.separator "Options:"
|
||||
o.separator ""
|
||||
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ module VagrantPlugins
|
|||
o.separator "Options:"
|
||||
o.separator ""
|
||||
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -40,7 +40,7 @@ module VagrantPlugins
|
|||
o.on("-s", "--short-description DESCRIPTION", String, "Short description of the box") do |s|
|
||||
options[:short_description] = s
|
||||
end
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -37,7 +37,7 @@ module VagrantPlugins
|
|||
o.on("--sort-by SORT", "Field to sort results on (created, downloads, updated) Default: downloads") do |s|
|
||||
options[:sort] = s
|
||||
end
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address to login with") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ module VagrantPlugins
|
|||
o.on("-d", "--description DESCRIPTION", String, "A description for this version") do |d|
|
||||
options[:description] = d
|
||||
end
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
|||
o.separator ""
|
||||
o.separator "Options:"
|
||||
o.separator ""
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
|||
o.separator ""
|
||||
o.separator "Options:"
|
||||
o.separator ""
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
|||
o.separator ""
|
||||
o.separator "Options:"
|
||||
o.separator ""
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ module VagrantPlugins
|
|||
o.on("-d", "--description DESCRIPTION", "A description for this version") do |d|
|
||||
options[:description] = d
|
||||
end
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |t|
|
||||
o.on("-u", "--username USERNAME_OR_EMAIL", String, "Vagrant Cloud username or email address") do |u|
|
||||
options[:username] = u
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue