Render usage through Rich on option errors #14143
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.30) × (1 − Review Confidence (0.92)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 42 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.92 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.225
Real PR Conversation Timeline
5 items
The trailing newline from get_usage() is intentional, so no rstrip() here.
pip install [options] ...
<-- blank line
no such option: --updrade
whilst I don't disagree, I do think this should build on top of https://github.com/pypa/pip/pull/14026
thanks @KRRT7 for the suggestion took a look.
here's my concern.
the two need different args though (file, theme, soft_wrap), so they pull in different directions.
I think keeping them separate is cleaner. what would we gain by merging?
Approved
Works and looks great, thank you!
I renamed the _create_console method to _create_console_for_help just so it's clear that this console isn't the main console used by pip. Its only purpose is for highlighting help output.
I agree this is logically separate from the linked PR.
ichard26
2ykwang
Fixes #14136
print_usage()fell through to plain optparse and printed the Rich markup literally. override it to render throughPipConsole, likeprint_help().see below:
before
after