fix: properly set help output for golang applications

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

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ func main() {
args.Parse(os.Args[2:]) args.Parse(os.Args[2:])
config.CommandShow(args.Args(), *global, *shell, *export, *merged) config.CommandShow(args.Args(), *global, *shell, *export, *merged)
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n config, Manages global and app-specific config vars\n")
case "config:help": case "config:help":
usage() usage()
default: default:
+1 -1
View File
@@ -34,7 +34,7 @@ func main() {
case "network", "network:help": case "network", "network:help":
usage() usage()
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n network, Manages network settings for an app\n")
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil { if err != nil {
+1 -1
View File
@@ -32,7 +32,7 @@ func main() {
case "repo", "repo:help": case "repo", "repo:help":
usage() usage()
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n repo, Runs commands that interact with the app's repo\n")
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil { if err != nil {