summaryrefslogtreecommitdiff
path: root/cmd/ponzu/main.go
diff options
context:
space:
mode:
authorMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-22 09:00:23 +0200
committerMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-22 09:00:23 +0200
commit9f4c550b8be0f80fd670f7ded32dbd4aab8d1f4e (patch)
treed4b3ef3ec0ac61a210ca079861e1334ca29a70c8 /cmd/ponzu/main.go
parent4c03187fbef64573ded62f40d5d4dace6c48747b (diff)
add help flags for sub commands to root cmd
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r--cmd/ponzu/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 6d8c974..fc9757d 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -185,7 +185,8 @@ func init() {
cmd.Flags().BoolVar(&devhttps, "devhttps", false, "[dev environment] enable automatic TLS/SSL certificate management")
}
- rootCmd.AddCommand(runCmd, serveCmd)
+ RegisterCmdlineCommand(runCmd)
+ RegisterCmdlineCommand(serveCmd)
pflags := rootCmd.PersistentFlags()
pflags.StringVar(&gocmd, "gocmd", "go", "custom go command if using beta or new release of Go")