From a87cfbeea27bf220bef7f3d40ba0bc4d875794a1 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 24 May 2014 20:37:47 +0100 Subject: [PATCH 1/2] make box add --help text more accurate Fixes #3898. --- plugins/commands/box/command/add.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/commands/box/command/add.rb b/plugins/commands/box/command/add.rb index 52016b007..938fe9d8d 100644 --- a/plugins/commands/box/command/add.rb +++ b/plugins/commands/box/command/add.rb @@ -8,7 +8,7 @@ module VagrantPlugins options = {} opts = OptionParser.new do |o| - o.banner = "Usage: vagrant box add [options] " + o.banner = "Usage: vagrant box add [options] " o.separator "" o.separator "Options:" o.separator "" @@ -46,6 +46,10 @@ module VagrantPlugins options[:version] = v end + o.separator "" + o.separator "The box descriptor can be the name of a box on Vagrant Cloud," + o.separator "or a URL, or a local .box file, or a local .json file containing" + o.separator "the catalog metadata." o.separator "" o.separator "The options below only apply if you're adding a box file directly," o.separator "and not using a Vagrant server or a box structured like 'user/box':" From 930254c30442378d8b38b1590cbf1f936ccca1da Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 24 May 2014 20:38:24 +0100 Subject: [PATCH 2/2] make init --help text more accurate --- plugins/commands/init/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/init/command.rb b/plugins/commands/init/command.rb index 438159523..28abbc5c8 100644 --- a/plugins/commands/init/command.rb +++ b/plugins/commands/init/command.rb @@ -17,7 +17,7 @@ module VagrantPlugins } opts = OptionParser.new do |o| - o.banner = "Usage: vagrant init [name] [url]" + o.banner = "Usage: vagrant init [options] [name [url]]" o.separator "" o.separator "Options:" o.separator ""