Skip to content

docs: fix --code_review flag typo in usage tutorials (--code_review -> --code-review) - #2122

Closed
latent-9 wants to merge 1 commit into
FoundationAgents:mainfrom
latent-9:docs-fix-code-review-flag
Closed

docs: fix --code_review flag typo in usage tutorials (--code_review -> --code-review)#2122
latent-9 wants to merge 1 commit into
FoundationAgents:mainfrom
latent-9:docs-fix-code-review-flag

Conversation

@latent-9

Copy link
Copy Markdown

The startup CLI example in the usage tutorials passes --code_review (underscore):

metagpt "Write a cli snake game" --code_review

But the option is registered as --code-review. It comes from the code_review parameter in metagpt/software_company.py (code_review: bool = typer.Option(default=True, ...)), and Typer maps code_review to the option string --code-review. Click does exact long-option matching, so --code_review fails with Error: No such option: --code_review.

The auto-generated --help output shown further down in the same docs already lists the correct --code-review / --no-code-review, and the neighboring --no-implement example uses a hyphen too — only this line is wrong.

Fixes both docs/tutorial/usage.md and docs/tutorial/usage_cn.md. Docs-only, no functional change.

The CLI example uses --code_review, but the Typer option registers as
--code-review (from the code_review parameter in metagpt/software_company.py).
Click rejects --code_review with 'No such option'. The --help output shown
lower in the same docs already lists --code-review. Fixes usage.md and
usage_cn.md.
@latent-9

latent-9 commented Aug 5, 2026

Copy link
Copy Markdown
Author

Closing this on my end to keep my open PRs tidy. Feel free to reopen if it is still useful. Thanks for the project.

@latent-9 latent-9 closed this Aug 5, 2026
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.

1 participant