Skip to content

Commit 14a074f

Browse files
HoffmannPtechknowlogick
authored andcommitted
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 <[email protected]>
1 parent 3786369 commit 14a074f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ arguments - which can alternatively be run by running the subcommand web.`
4848
cmd.CmdAdmin,
4949
cmd.CmdGenerate,
5050
}
51-
app.Flags = append(app.Flags, []cli.Flag{}...)
51+
app.Flags = append(app.Flags, cmd.CmdWeb.Flags...)
5252
app.Action = cmd.CmdWeb.Action
5353
err := app.Run(os.Args)
5454
if err != nil {

0 commit comments

Comments
 (0)