Commit d991ee4
committed
fix(cli): drop misleading FLAGS section from root --help
The hand-written FLAGS block in `lark-cli --help` listed --params,
--data, --as, --format, --page-all, --page-size, --page-limit,
--page-delay, -o, --jq, -q and --dry-run as if they were global flags.
None are registered on the root command — they all error "unknown flag"
at the top level and exist only on leaf commands (api, service). The
block also contradicted the Cobra-generated "Flags:" section rendered
directly below it, which shows only -h/--help, --profile, -v/--version.
Remove the static cheat-sheet so Cobra's real per-command flag output is
the single source of truth and the two sections can no longer drift.
USAGE/EXAMPLES still show these flags in their correct position (after a
command), which remains accurate.
Change-Id: Ib801608d2cba8a759c12fa151af62fab707fb0231 parent 0aa9e96 commit d991ee4
1 file changed
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 51 | | |
66 | 52 | | |
67 | 53 | | |
| |||
0 commit comments