docs(cli): clarify that --output json requires extraction strategy by ege-arhan · Pull Request #2335 · unclecode/crawl4ai · GitHub
Skip to content

docs(cli): clarify that --output json requires extraction strategy - #2335

Merged
ntohidi merged 2 commits into
unclecode:developfrom
ege-arhan:fix/cli-json-output-help
Oct 12, 2026
Merged

ntohidi merged 2 commits into
unclecode:developfrom
ege-arhan:fix/cli-json-output-help

Conversation

@ege-arhan

Copy link
Copy Markdown
Contributor

Closes #2334

Clarifies in click option help that -o json expects an extraction strategy or schema to be set for structured extractions, preventing user confusion when raw markdown/HTML is returned.

@SohamKukreti

Copy link
Copy Markdown
Collaborator

@ege-arhan
ege-arhan force-pushed the fix/cli-json-output-help branch from 5184ba2 to 2229adc Compare October 12, 2026 11:08
@ege-arhan
ege-arhan changed the base branch from main to develop October 12, 2026 11:08
@ege-arhan

Copy link
Copy Markdown
Contributor Author

@ntohidi ntohidi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @ege-arhan! The help text matches the early error we merged in #2362 ("-o json needs an extraction strategy (-j or -e)"), so --help and the error now say the same thing. I checked that crwl crawl --help renders it, and that it merges cleanly with current develop.

Approving. Thanks again!

@ntohidi
ntohidi merged commit 29c28eb into unclecode:develop Oct 12, 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.

docs(cli): clarify --output json behavior when no extraction strategy is provided

3 participants