Get rid of extra subcommand help message
The available subcommands are displayed using the option parser in the vagrant client
This commit is contained in:
parent
b2cf6ed9bf
commit
434cc89a95
@ -40,16 +40,18 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant autocomplete <subcommand>"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
keys = @subcommands.keys.map(&:to_s)
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
keys = @subcommands.keys.map(&:to_s)
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
|
||||
@ -70,18 +70,19 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant box <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant box <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -48,18 +48,19 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud auth <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Authorization with Vagrant Cloud"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant cloud auth <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -52,18 +52,19 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud box <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Commands to manage boxes on Vagrant Cloud"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant cloud box <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -52,18 +52,19 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud provider <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "For various provider actions with Vagrant Cloud"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant cloud provider <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -80,18 +80,19 @@ module VagrantPlugins
|
||||
opts.separator ""
|
||||
opts.separator "The cloud command can be used for taking actions against"
|
||||
opts.separator "Vagrant Cloud like searching or uploading a Vagrant Box"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key.ljust(15)} #{@subcommand_helptext[key.to_sym]}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key.ljust(15)} #{@subcommand_helptext[key.to_sym]}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant cloud <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -56,18 +56,19 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud version <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "For taking various actions against a Vagrant box's version attribute on Vagrant Cloud"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant cloud version <subcommand> -h`"
|
||||
end
|
||||
|
||||
@ -70,18 +70,19 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |o|
|
||||
o.banner = "Usage: vagrant plugin <command> [<args>]"
|
||||
o.separator ""
|
||||
o.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
o.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
o.separator ""
|
||||
o.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
o.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
o.separator ""
|
||||
o.separator "For help on any individual command run `vagrant plugin COMMAND -h`"
|
||||
end
|
||||
|
||||
@ -69,18 +69,19 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant snapshot <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
# Add the available subcommands as separators in order to print them
|
||||
# out as well.
|
||||
keys = []
|
||||
@subcommands.each { |key, value| keys << key.to_s }
|
||||
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant snapshot <subcommand> -h`"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user