From 14a074f97917b580ccd5360e5a15ebb9f5c933ff Mon Sep 17 00:00:00 2001 From: Peter Hoffmann Date: Thu, 1 Nov 2018 16:24:23 +0100 Subject: [PATCH] fix: Accept web-command cli flags if web-command is commited (#5245) * Added flags of default cmd CmdWeb to app-wide flags * If command *is* specified app-wide flags are ignored Backport of #5200 Signed-off-by: Berengar W. Lehr --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e73f1d60a..649da2cab 100644 --- a/main.go +++ b/main.go @@ -48,7 +48,7 @@ arguments - which can alternatively be run by running the subcommand web.` cmd.CmdAdmin, cmd.CmdGenerate, } - 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 {