Skip to content

docs(cli): complete command help - #2055

Merged
lizhengfeng101 merged 1 commit into
alibaba:mainfrom
chaojixinren:fix/complete-cli-help
Nov 24, 2026
Merged

lizhengfeng101 merged 1 commit into
alibaba:mainfrom
chaojixinren:fix/complete-cli-help

Conversation

@chaojixinren

@chaojixinren chaojixinren commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Complete the CLI help text for supported configuration keys, commands, and flag constraints that were previously only discoverable through implementation details or runtime errors.

  • List supported config set keys, provider and MCP fields, protocol values, and JSON value formats, and add an llm.url example. Generate the top-level key list from supportedConfigKeys to prevent drift.
  • Document config unset max_tokens and config unset effort.
  • Add the ocr llm models example and document that session IDs can resume both compatible reviews and scans.
  • Document mutually exclusive review modes, the SARIF/preview incompatibility, effort-based timeout scaling, and repository-root resolution for relative background-file paths.
  • Add a delegate rule --background-file example.

This changes help text and its regression tests only; command execution behavior is unchanged.

Type of Change

  • [] Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

  • make test passes locally
  • Manual testing (describe below)

Tested on macOS with the repository's Go toolchain.

  • Added regression tests for the configuration key and value-format lists, supported unset keys, command examples, resume compatibility, and shared flag descriptions.
  • Ran make check successfully, including license and English-source checks, go mod tidy, formatting, and go vet.
  • Ran make build and manually inspected the rendered help for config set, config unset, llm, session list, delegate, review, and scan.
  • Ran a pre-commit OCR review of the production-code changes; it reported zero findings across five files.

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA
  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

AI/LLM disclosure: Hermes Agent (Nous Research), using the Kimi-K3.1-Pro model, assisted with the help audit, implementation, tests, and this PR description. OpenCodeReview was also used for a pre-commit review. The changes and generated text were reviewed before submission; commits contain no AI/LLM attribution.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🔍 OpenCodeReview found 1 issue(s) in this PR.

  • ✅ Successfully posted inline: 1 comment(s)

Comment thread cmd/opencodereview/llm_cmd.go Resolved

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 9007ae8 into alibaba:main Nov 24, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants