fix: properly set help output for golang applications

Closes #3007
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-28 03:22:00 -05:00
parent 86a0ae1dde
commit 6d43931e17
3 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ func main() {
args.Parse(os.Args[2:])
config.CommandShow(args.Args(), *global, *shell, *export, *merged)
case "help":
fmt.Print(helpContent)
fmt.Print("\n config, Manages global and app-specific config vars\n")
case "config:help":
usage()
default:

View File

@@ -34,7 +34,7 @@ func main() {
case "network", "network:help":
usage()
case "help":
fmt.Print(helpContent)
fmt.Print("\n network, Manages network settings for an app\n")
default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {

View File

@@ -32,7 +32,7 @@ func main() {
case "repo", "repo:help":
usage()
case "help":
fmt.Print(helpContent)
fmt.Print("\n repo, Runs commands that interact with the app's repo\n")
default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {