diff --git a/cmd/root.go b/cmd/root.go index 31a97728..41c6f5f5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -48,10 +48,6 @@ EXAMPLES: # Generic API call lark-cli api GET /open-apis/calendar/v4/calendars -FLAGS: - e.g. --as, --format, -q/--jq, --dry-run ... - Run lark-cli --help for the full list. - AI AGENT SKILLS: lark-cli pairs with AI agent skills (Claude Code, etc.) that teach the agent Lark API patterns, best practices, and workflows. diff --git a/cmd/root_test.go b/cmd/root_test.go index ff1e3837..3ab78ceb 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -83,17 +83,6 @@ func TestRootLong_AgentSkillsLinkTargetsReadmeSection(t *testing.T) { } } -func TestRootLong_FlagsSectionPointsToCommandHelp(t *testing.T) { - // The flags shown in root help live on leaf commands (api, service), not - // on the root command — every one errors "unknown flag" at the top level. - // So the FLAGS section may only list them as examples and must route to - // ` --help` for the full set, rather than re-list them as if they - // were global root flags (which both lies and drifts as flags change). - if !strings.Contains(rootLong, "lark-cli --help") { - t.Fatalf("root help FLAGS section must point to `lark-cli --help` for the flag list, got:\n%s", rootLong) - } -} - func TestConfigureFlagCompletions(t *testing.T) { t.Cleanup(func() { cmdutil.SetFlagCompletionsEnabled(false) })