Skip to content

Commit

Permalink
Fix help output spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Jun 19, 2017
1 parent f6ab1d3 commit 301cf7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions akamai-purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,21 @@ func setCliTemplates() {
"{{if .VisibleFlags}}[global flags]{{end}}"+
"{{if .Commands}} command [command flags]{{end}} "+
"{{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[arguments...]{{end}}"+
"{{end}}") +
"\n\n{{end}}") +

"{{if .Description}}\n\n" +
color.YellowString("Description:\n") +
" {{.Description}}" +
"\n\n{{end}}" +

"{{if .VisibleCommands}}" +
color.YellowString("Commands:\n") +
color.YellowString("Built-In Commands:\n") +
"{{range .VisibleCategories}}" +
"{{if .Name}}" +
"{{.Name}}:" +
"\n{{.Name}}\n" +
"{{end}}" +
"{{range .VisibleCommands}}" +
` {{join .Names ", "}}{{"\t"}}{{.Usage}}{{"\n"}}` +
` {{join .Names ", "}}{{"\n"}}` +
"{{end}}" +
"{{end}}" +
"\n{{end}}" +
Expand All @@ -255,7 +255,7 @@ func setCliTemplates() {
"{{if .Copyright}}" +
color.YellowString("Copyright:\n") +
" {{.Copyright}}" +
"{{end}}"
"{{end}}\n"

cli.CommandHelpTemplate = "" +
color.YellowString("Name: \n") +
Expand Down

0 comments on commit 301cf7a

Please sign in to comment.