Skip to content

Commit 584844e

Browse files
HoffmannPtechknowlogick
authored andcommitted
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 <[email protected]> * Removed style breaking newline * broken windows need to be fixed * provides requested change
1 parent 6c90dd1 commit 584844e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ arguments - which can alternatively be run by running the subcommand web.`
4949
cmd.CmdGenerate,
5050
cmd.CmdMigrate,
5151
}
52-
app.Flags = append(app.Flags, []cli.Flag{}...)
52+
app.Flags = append(app.Flags, cmd.CmdWeb.Flags...)
5353
app.Action = cmd.CmdWeb.Action
5454
err := app.Run(os.Args)
5555
if err != nil {

0 commit comments

Comments
 (0)