Generate config flags (#4268)

Fix #4262
This commit is contained in:
cnderrauber
2026-01-29 15:04:01 +08:00
committed by GitHub
parent 700e1788f2
commit 76a41a7a8c
2 changed files with 76 additions and 35 deletions
+5 -1
View File
@@ -92,7 +92,11 @@ func helpVerbose(_ context.Context, c *cli.Command) error {
return err
}
c.Flags = append(baseFlags, generatedFlags...)
flags := append([]cli.Flag{}, baseFlags...)
flags = append(flags, generatedFlags...)
root := c.Root()
root.Flags = flags
c.Flags = flags
return cli.ShowAppHelp(c)
}