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,6 +40,7 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant autocomplete <subcommand>"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -51,6 +52,7 @@ module VagrantPlugins
|
||||
keys.sort.each do |key|
|
||||
opts.separator " #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
opts.separator ""
|
||||
opts.separator "For help on any individual subcommand run `vagrant autocomplete <subcommand> -h`"
|
||||
|
||||
@ -70,6 +70,7 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant box <subcommand> [<args>]"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -81,7 +82,7 @@ module VagrantPlugins
|
||||
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,6 +48,7 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud auth <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Authorization with Vagrant Cloud"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -59,7 +60,7 @@ module VagrantPlugins
|
||||
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,6 +52,7 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud box <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "Commands to manage boxes on Vagrant Cloud"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -63,7 +64,7 @@ module VagrantPlugins
|
||||
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,6 +52,7 @@ module VagrantPlugins
|
||||
opts.banner = "Usage: vagrant cloud provider <subcommand> [<args>]"
|
||||
opts.separator ""
|
||||
opts.separator "For various provider actions with Vagrant Cloud"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -63,7 +64,7 @@ module VagrantPlugins
|
||||
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,6 +80,7 @@ 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"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -91,7 +92,7 @@ module VagrantPlugins
|
||||
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,6 +56,7 @@ 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"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -67,7 +68,7 @@ module VagrantPlugins
|
||||
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,6 +70,7 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |o|
|
||||
o.banner = "Usage: vagrant plugin <command> [<args>]"
|
||||
if !Vagrant.server_mode?
|
||||
o.separator ""
|
||||
o.separator "Available subcommands:"
|
||||
|
||||
@ -81,7 +82,7 @@ module VagrantPlugins
|
||||
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,6 +69,7 @@ module VagrantPlugins
|
||||
def help
|
||||
opts = OptionParser.new do |opts|
|
||||
opts.banner = "Usage: vagrant snapshot <subcommand> [<args>]"
|
||||
if !Vagrant.server_mode?
|
||||
opts.separator ""
|
||||
opts.separator "Available subcommands:"
|
||||
|
||||
@ -80,7 +81,7 @@ module VagrantPlugins
|
||||
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