aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPeter Hoffmann2018-11-01 01:36:41 +0100
committertechknowlogick2018-10-31 20:36:41 -0400
commit584844eada226f062d46da53e9ba6470ecd58eaa (patch)
treefeffc6a854b49a43c501e098f030103b22aace78 /main.go
parent6c90dd1f4ae96dabec458c27dc8dee05c7525a1f (diff)
fix: Accept web-command cli flags if web-command is commited (#5200)
* fix: Accept web-command cli flags if web-command is commited * Added flags of default cmd CmdWeb to app-wide flags * If command *is* specified app-wide flags are ignored Resolves: #5065 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Removed style breaking newline * broken windows need to be fixed * provides requested change
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index a331de473..a0a52c3ae 100644
--- a/main.go
+++ b/main.go
@@ -49,7 +49,7 @@ arguments - which can alternatively be run by running the subcommand web.`
cmd.CmdGenerate,
cmd.CmdMigrate,
}
- app.Flags = append(app.Flags, []cli.Flag{}...)
+ app.Flags = append(app.Flags, cmd.CmdWeb.Flags...)
app.Action = cmd.CmdWeb.Action
err := app.Run(os.Args)
if err != nil {