From 8dca816aacd7dd2cdf067e40b17470b442ae5121 Mon Sep 17 00:00:00 2001 From: Faissal Elamraoui Date: Mon, 5 Dec 2016 14:52:37 +0100 Subject: [PATCH] Fixed padding for printing an option --- bee.go | 2 +- run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bee.go b/bee.go index d90386f..397ce9d 100644 --- a/bee.go +++ b/bee.go @@ -197,7 +197,7 @@ Use {{"bee help [topic]" | bold}} for more information about that topic. var helpTemplate = `{{"USAGE" | headline}} {{.UsageLine | printf "bee %s" | bold}} {{if .Options}}{{endline}}{{"OPTIONS" | headline}}{{range $k,$v := .Options}} - {{$k | printf "-%-11s" | bold}} {{$v}}{{end}}{{endline}}{{end}} + {{$k | printf "-%-12s" | bold}} {{$v}}{{end}}{{endline}}{{end}} {{"DESCRIPTION" | headline}} {{tmpltostr .Long . | trim}} ` diff --git a/run.go b/run.go index a9b54a4..951cfa8 100644 --- a/run.go +++ b/run.go @@ -60,7 +60,7 @@ func init() { cmdRun.Flag.Var(&gendoc, "gendoc", "Enable auto-generate the docs.") cmdRun.Flag.Var(&downdoc, "downdoc", "Enable auto-download of the swagger file if it does not exist.") cmdRun.Flag.Var(&excludedPaths, "e", "List of paths to exclude.") - cmdRun.Flag.BoolVar(&vendorWatch, "vendor", false, "Enable watch vendor folder") + cmdRun.Flag.BoolVar(&vendorWatch, "vendor", false, "Enable watch vendor folder.") cmdRun.Flag.StringVar(&buildTags, "tags", "", "Set the build tags. See: https://golang.org/pkg/go/build/") cmdRun.Flag.StringVar(&runmode, "runmode", "", "Set the Beego run mode.") exit = make(chan bool)