Commit 45c590f4 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Fix help output for packer, excessive newlines

parent ade37951
......@@ -209,8 +209,8 @@ func (e *coreEnvironment) printHelp() {
// Sort the keys
sort.Strings(e.commands)
e.ui.Say("usage: packer [--version] [--help] <command> [<args>]\n\n")
e.ui.Say("Available commands are:\n")
e.ui.Say("usage: packer [--version] [--help] <command> [<args>]\n")
e.ui.Say("Available commands are:")
for _, key := range e.commands {
var synopsis string
......@@ -227,7 +227,7 @@ func (e *coreEnvironment) printHelp() {
key = fmt.Sprintf("%v%v", key, strings.Repeat(" ", maxKeyLen-len(key)))
// Output the command and the synopsis
e.ui.Say(fmt.Sprintf(" %v %v\n", key, synopsis))
e.ui.Say(fmt.Sprintf(" %v %v", key, synopsis))
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment