plugins/commands/box/command/root.rb in vagrant-unbundled-2.2.19.0 vs plugins/commands/box/command/root.rb in vagrant-unbundled-2.3.2.0
- old
+ new
@@ -68,21 +68,22 @@
# Prints the help out for this command
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
@env.ui.info(opts.help, prefix: false)