๐ Improve CLI `--help` output (UX polish) #5430
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) ร (1 โ Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 ยท Change Risk (XGBoost)
Score: 0.45 ยท 436 lines diff across 5 files
Model 2 ยท Review Depth (DistilBERT)
Depth Score: 0.17 ยท 1 substantive comment(s)
Model 3 ยท Review Timing & Attention
Session adequacy: 100% ยท Reviewer familiarity: 35%
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.364
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5430"
general
weight: 0.35
justaugustus
What kind of change does this PR introduce?
Documentation-type change: a fix-up of the CLI
--helpoutput (flag descriptions and the root help text). No behavior changes.What is the current behavior?
scorecard --helpdoes not mention that a GitHub token is required to run any scan, or which environment variables are accepted--repo/--reposclaim GitHub-only inputs ("owner/repo","github.com/owner/repo","https://github.com/repo"), butgitlab.com/owner/repois also parsed (anddev.azure.com/...requires the experimentalSCORECARD_EXPERIMENTALmode, so listing it as a normal input overstates support).--checkspossible-values list is built by iterating a map and is never sorted, so the help output shows a different order on every run.--probessays only "Probes to run.",--outputsays "output file",--metadatadoes not say the values end up in JSON output,--localdoes not say that repository host checks are skipped,--file-modere-lists its values without explaining them,--verbositycarries a confusing--show-detailsreference,--show-annotationshas a grammar error.What is the new behavior (if this is a feature change)?
Same code paths, same parsing, only the help strings change:
Example).--repo/--reposlist thegitlab.com/owner/repoformat; thedev.azure.comformat is removed until it works withoutSCORECARD_EXPERIMENTAL.
--checkspossible-values list is sorted alphabetically and comma-spaced (matching--format), so the help output is stable across runs.--local,--probes,--metadata,--verbosity,--output,--commit-depth,--file-mode,--npm/,--pypi/,--rubygems/,--nuget, and--show-annotationsare more concrete.go test -raceover./options/...and./cmd/...passes withSKIP_GINKGO=1.)Which issue(s) this PR fixes
NONE
Special notes for your reviewer
make check-linterreports zero findings in the two changed files. The target fails on currentmainfor pre-existing findings in untouched packages (goconst/gocognit), which this PR does not address.make unit-testwas not completed locally (long runtime); CI covers it. The changed packages pass under the same flags.--repo/--reposis deliberate:makeRepoincmd/root.goonly tries Azure DevOps whenSCORECARD_EXPERIMENTALis set, so the previous help text described an input that does not work by default.Does this PR introduce a user-facing change?
Yes โ the CLI help output text.
``
release-note
``Improved CLI help: documents the required token environment variables, corrects the --repo/--repos input formats (adds gitlab.com, removes the experimental dev.azure.com format), sorts the --checks possible-values list, and clarifies several flag descriptions. No behavior changes.