From 45c590f4138f024171ffbf0bf9568dca82c7709a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 1 Jun 2013 19:15:32 -0700 Subject: [PATCH] packer: Fix help output for packer, excessive newlines --- packer/environment.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packer/environment.go b/packer/environment.go index cb761e522..2af79f628 100644 --- a/packer/environment.go +++ b/packer/environment.go @@ -209,8 +209,8 @@ func (e *coreEnvironment) printHelp() { // Sort the keys sort.Strings(e.commands) - e.ui.Say("usage: packer [--version] [--help] []\n\n") - e.ui.Say("Available commands are:\n") + e.ui.Say("usage: packer [--version] [--help] []\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)) } }