help: Make version and help flags consistent

These flags are presented as POSIX/GNU-style long-form flags
(double-dash), whereas the rest of our CLI flags as seen in sub-commands
are presented as single-dash options.

While both work in both cases (on part of the flag package allowing
double dashes as well), we converge around the single-dash form, so the
basic help text here should be consistent.
This commit is contained in:
Chris Marchesi 2018-08-01 14:28:39 -07:00
parent cdd5f8e637
commit 04d00cec9f
No known key found for this signature in database
GPG Key ID: 8D6F1589D9834498

View File

@ -32,7 +32,7 @@ func helpFunc(commands map[string]cli.CommandFactory) string {
// website/source/docs/commands/index.html.markdown; if you
// change this then consider updating that to match.
helpText := fmt.Sprintf(`
Usage: terraform [--version] [--help] <command> [args]
Usage: terraform [-version] [-help] <command> [args]
The available commands for execution are listed below.
The most common, useful commands are shown first, followed by