Skip to content

Commit d991ee4

Browse files
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: Ib801608d2cba8a759c12fa151af62fab707fb023
1 parent 0aa9e96 commit d991ee4

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

cmd/root.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ EXAMPLES:
4848
# Generic API call
4949
lark-cli api GET /open-apis/calendar/v4/calendars
5050
51-
FLAGS:
52-
--params <json> URL/query parameters JSON
53-
--data <json> request body JSON (POST/PATCH/PUT/DELETE)
54-
--as <type> identity type: user | bot
55-
--format <fmt> output format: json (default) | ndjson | table | csv | pretty
56-
--page-all automatically paginate through all pages
57-
--page-size <N> page size (0 = use API default)
58-
--page-limit <N> max pages to fetch with --page-all (default: 10, 0 for unlimited)
59-
--page-delay <MS> delay in ms between pages (default: 200, only with --page-all)
60-
-o, --output <path> output file path for binary responses
61-
--jq <expr> jq expression to filter JSON output
62-
-q <expr> shorthand for --jq
63-
--dry-run print request without executing
64-
6551
AI AGENT SKILLS:
6652
lark-cli pairs with AI agent skills (Claude Code, etc.) that
6753
teach the agent Lark API patterns, best practices, and workflows.

0 commit comments

Comments
 (0)