Repository navigation
docs(rust/cli): clean up --help texts - #13008
Conversation
…lap_help_markdown Re-enable the `perfectionist::clap_help_markdown` dylint rule (dropped from the disable list) and clear every finding it surfaces. Code spans are kept via `ignore_constructs = ["code_span"]`. The flagged spans are almost all flag names, file names, literal values, and `pkg@<rev>` target syntax that read acceptably in `--help` and stay useful as `cargo doc` API docs; unwrapping one such as `pacquet@<rev>` would turn `<rev>` into a stray HTML tag that rustdoc rejects. The genuinely user-hostile leaks are cleaned out of the help text instead: intra-doc links to internal Rust types become the CLI flag they describe or a plain-language phrase, an inline `[text](url)` citation becomes a bare `<url>` autolink (never forbidden by the rule), and a `<cache>` placeholder that parsed as an HTML tag is wrapped in a code span. Doc comments on subcommand argument structs are reworded the same way to satisfy the workspace-wide lint even though clap never shows them (the enclosing variant's doc wins). Closes #12718 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe PR rewrites pacquet and pnpr CLI help comments into concise user-facing prose, removes internal markdown artifacts, and re-enables the ChangesPacquet CLI help cleanup
Estimated code review effort: 2 (Simple) | ~15 minutes Assessment against linked issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
--help text--help text
--help text--help texts
Micro-Benchmark ResultsLinux |
Address review feedback: trim the rationale to two stable lines, drop the drift-prone examples, and remove the issue reference. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.8280100700999995,
"stddev": 0.17983585586868198,
"median": 3.8268802079000004,
"user": 3.6433648999999995,
"system": 3.3217627800000002,
"min": 3.6004477459,
"max": 4.0963560379,
"times": [
3.8138498259,
3.8711174649,
4.037447181899999,
3.8399105899,
4.0963560379,
4.0142701279,
3.6500948299,
3.7491524869000004,
3.6074544099000003,
3.6004477459
]
},
{
"command": "pacquet@main",
"mean": 3.7973211874999997,
"stddev": 0.20488518067318254,
"median": 3.6699539429,
"user": 3.6493636,
"system": 3.30515268,
"min": 3.6147040069,
"max": 4.104268021899999,
"times": [
3.6147040069,
3.6269428069000003,
4.0313242999,
3.9918650429,
4.0002503709,
3.6577465469,
3.6821613389,
3.6315017109,
4.104268021899999,
3.6324477289000003
]
},
{
"command": "pnpr@HEAD",
"mean": 2.0966237827,
"stddev": 0.10342277117074528,
"median": 2.0740655394000003,
"user": 2.7921077,
"system": 2.9289973799999993,
"min": 1.9814544979000002,
"max": 2.3589005749000003,
"times": [
2.0493175259,
2.0960853109,
2.0438184149,
2.0264210129,
2.1355305979,
1.9814544979000002,
2.0985897659,
2.0520457679,
2.1240743579,
2.3589005749000003
]
},
{
"command": "pnpr@main",
"mean": 2.1656963489,
"stddev": 0.1486408903494524,
"median": 2.1147838244,
"user": 2.7719034,
"system": 2.92116668,
"min": 2.0077739579,
"max": 2.3776983119,
"times": [
2.0897537079,
2.3661340489000002,
2.1517060219,
2.1398139409,
2.0246484519,
2.0711947349,
2.3700684419,
2.0077739579,
2.0581718709,
2.3776983119
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.67315144532,
"stddev": 0.012080855189748286,
"median": 0.6729105772200001,
"user": 0.4193421,
"system": 1.3400390199999999,
"min": 0.6526998607200001,
"max": 0.69101980072,
"times": [
0.6662244877200001,
0.6797418297200001,
0.6855559437200001,
0.69101980072,
0.6573379327200001,
0.6526998607200001,
0.6713842157200001,
0.6742900637200001,
0.6715310907200001,
0.6817292277200001
]
},
{
"command": "pacquet@main",
"mean": 0.68437325042,
"stddev": 0.0660732729300104,
"median": 0.66382785322,
"user": 0.3889941,
"system": 1.3474116200000001,
"min": 0.64847147372,
"max": 0.8703028057200001,
"times": [
0.65762354172,
0.66567741672,
0.64847147372,
0.66236515472,
0.6590357077200001,
0.6652905517200001,
0.65574999172,
0.6771508877200001,
0.6820649727200001,
0.8703028057200001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.7510996083199999,
"stddev": 0.06519895930641822,
"median": 0.72790879622,
"user": 0.44409470000000006,
"system": 1.35902812,
"min": 0.7064552967200001,
"max": 0.91922559272,
"times": [
0.7128959987200001,
0.72826946272,
0.7708216317200001,
0.7873660247200001,
0.7418624007200001,
0.7065473307200001,
0.7100042147200001,
0.72754812972,
0.91922559272,
0.7064552967200001
]
},
{
"command": "pnpr@main",
"mean": 0.7361384681200002,
"stddev": 0.027482160775332578,
"median": 0.72936789772,
"user": 0.4206856,
"system": 1.3768653199999998,
"min": 0.6954545537200001,
"max": 0.79325414372,
"times": [
0.7670499217200001,
0.72553308272,
0.6954545537200001,
0.72311549072,
0.72281036072,
0.73320271272,
0.74266493172,
0.79325414372,
0.74171784872,
0.71658163472
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.454303360480001,
"stddev": 0.04650364068996518,
"median": 4.456749760280001,
"user": 3.9943129199999996,
"system": 3.42307304,
"min": 4.37182759928,
"max": 4.517857843280001,
"times": [
4.469562698280001,
4.517857843280001,
4.50128202528,
4.5022019462800005,
4.45861046328,
4.44488868228,
4.454889057280001,
4.40761365328,
4.41429963628,
4.37182759928
]
},
{
"command": "pacquet@main",
"mean": 4.378059625480001,
"stddev": 0.04390085527797167,
"median": 4.36989982528,
"user": 3.9386200199999997,
"system": 3.3913765399999996,
"min": 4.3102823612800005,
"max": 4.474810998280001,
"times": [
4.391648877280001,
4.3102823612800005,
4.356184751280001,
4.418276991280001,
4.376198839280001,
4.35876768628,
4.474810998280001,
4.36477979128,
4.37501985928,
4.354626099280001
]
},
{
"command": "pnpr@HEAD",
"mean": 2.24941908248,
"stddev": 0.12823650021660088,
"median": 2.27650962678,
"user": 2.64982202,
"system": 2.8971867399999995,
"min": 2.07719442828,
"max": 2.42497324128,
"times": [
2.17455888828,
2.08812275528,
2.27561661628,
2.31980315228,
2.11909147128,
2.32382957328,
2.27740263728,
2.42497324128,
2.07719442828,
2.41359806128
]
},
{
"command": "pnpr@main",
"mean": 2.2065036114799996,
"stddev": 0.12618720548415988,
"median": 2.16616682978,
"user": 2.64691902,
"system": 2.90742104,
"min": 2.09404890928,
"max": 2.45652854028,
"times": [
2.1752000962799998,
2.12059566328,
2.11706039128,
2.15713356328,
2.18092073028,
2.41346618928,
2.09404890928,
2.45652854028,
2.13096713928,
2.21911489228
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.51645268606,
"stddev": 0.02482076499377965,
"median": 1.51753777766,
"user": 1.5074333799999997,
"system": 1.78238184,
"min": 1.48515470466,
"max": 1.55551456866,
"times": [
1.5429194686599998,
1.50287633466,
1.53209455166,
1.5336081076599999,
1.5231738376600001,
1.48979873066,
1.48515470466,
1.48748483866,
1.51190171766,
1.55551456866
]
},
{
"command": "pacquet@main",
"mean": 1.48374688436,
"stddev": 0.041421114614476714,
"median": 1.47455538666,
"user": 1.4356388800000002,
"system": 1.7457539400000002,
"min": 1.42607971066,
"max": 1.5724001456599999,
"times": [
1.46803402566,
1.5724001456599999,
1.50988544366,
1.47193840066,
1.47717237266,
1.51163437666,
1.44426639466,
1.42607971066,
1.45876915466,
1.49728881866
]
},
{
"command": "pnpr@HEAD",
"mean": 0.70573527946,
"stddev": 0.043010914097087766,
"median": 0.69396609016,
"user": 0.38245378,
"system": 1.2948178399999999,
"min": 0.66934895766,
"max": 0.82357754766,
"times": [
0.69318032266,
0.69540364166,
0.82357754766,
0.68967158666,
0.66934895766,
0.69475185766,
0.71520706666,
0.69092374666,
0.70112279666,
0.68416527066
]
},
{
"command": "pnpr@main",
"mean": 0.71731282346,
"stddev": 0.0849546918477197,
"median": 0.6862903791599999,
"user": 0.36892358,
"system": 1.3057533399999999,
"min": 0.68236258766,
"max": 0.95731441566,
"times": [
0.68236258766,
0.69366726666,
0.68658193066,
0.70985153766,
0.68272593766,
0.68387301066,
0.68599882766,
0.68279093366,
0.95731441566,
0.70796178666
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.24716715566,
"stddev": 0.06552511054391416,
"median": 3.22419894986,
"user": 1.9355135799999996,
"system": 2.1104984599999996,
"min": 3.18373145486,
"max": 3.36668575786,
"times": [
3.22237514886,
3.21504866186,
3.22602275086,
3.18911103786,
3.25152976586,
3.18373145486,
3.23636366286,
3.36668575786,
3.21625637986,
3.36454693586
]
},
{
"command": "pacquet@main",
"mean": 3.2213123302599995,
"stddev": 0.05097661369205142,
"median": 3.2051919463600003,
"user": 1.9013609799999998,
"system": 2.01578626,
"min": 3.17809096786,
"max": 3.34979605786,
"times": [
3.20140161086,
3.20898228186,
3.17809096786,
3.18541936486,
3.20074401886,
3.22689833186,
3.34979605786,
3.25106089386,
3.23112078286,
3.17960899186
]
},
{
"command": "pnpr@HEAD",
"mean": 0.69587036966,
"stddev": 0.013256192595298668,
"median": 0.69558152336,
"user": 0.37991228,
"system": 1.3024421599999998,
"min": 0.66769755386,
"max": 0.71019863886,
"times": [
0.70598025686,
0.70469506186,
0.71019863886,
0.70981787686,
0.66769755386,
0.69414596786,
0.69693900586,
0.69422404086,
0.69302765586,
0.68197763786
]
},
{
"command": "pnpr@main",
"mean": 0.70668853586,
"stddev": 0.06266222180390506,
"median": 0.68538759886,
"user": 0.35261047999999995,
"system": 1.31802096,
"min": 0.67190058286,
"max": 0.88176139686,
"times": [
0.68567097986,
0.71620138986,
0.67827306086,
0.69085309186,
0.68510421786,
0.67190058286,
0.68047876486,
0.69381061886,
0.68283125486,
0.88176139686
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.71472216026,
"stddev": 0.012147911210071647,
"median": 0.71471149036,
"user": 0.6727714,
"system": 0.15622265999999996,
"min": 0.6981151318600001,
"max": 0.7382909778600001,
"times": [
0.70023778286,
0.7184080918600001,
0.7244158638600001,
0.7382909778600001,
0.6981151318600001,
0.7214649128600001,
0.7067442088600001,
0.7110148888600001,
0.7089621608600001,
0.7195675828600001
]
},
{
"command": "pacquet@main",
"mean": 0.70979564746,
"stddev": 0.009610269808857222,
"median": 0.7077543678600001,
"user": 0.6697048999999999,
"system": 0.15518725999999997,
"min": 0.6963849038600001,
"max": 0.7251978698600001,
"times": [
0.7119191958600001,
0.6963849038600001,
0.7081623748600001,
0.7049869108600001,
0.7216277548600001,
0.7195438408600001,
0.7022951008600001,
0.7073463608600001,
0.7251978698600001,
0.7004921618600001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.11517959220782607,
"stddev": 0.002222384148746312,
"median": 0.11576877586,
"user": 0.029919899999999996,
"system": 0.022527207826086956,
"min": 0.11161491986000001,
"max": 0.11784455786,
"times": [
0.11784455786,
0.11649623986,
0.11703973086000001,
0.11733839186,
0.11744360586000001,
0.11662629086000001,
0.11756932186,
0.11697038786000001,
0.11701651686,
0.11655239186000001,
0.11256817686000001,
0.11238941186000001,
0.11272921286000001,
0.11572044586,
0.11431577286000001,
0.11562361286,
0.11245076286000001,
0.11161491986000001,
0.11218603186000001,
0.11225806886,
0.11301999286,
0.11758799986,
0.11576877586
]
},
{
"command": "pnpr@main",
"mean": 0.11419387806833332,
"stddev": 0.0072522388865862404,
"median": 0.11239475036,
"user": 0.02879348333333333,
"system": 0.023349693333333334,
"min": 0.11058862586000001,
"max": 0.14753856086,
"times": [
0.11246176886,
0.11187823886,
0.11258941686,
0.11135703986,
0.11205707186000001,
0.11418013386,
0.11738391886,
0.11325823286,
0.11160150086000001,
0.11058862586000001,
0.11367287586000001,
0.11130703586,
0.11203340786,
0.11216897786,
0.11232773186,
0.11358017886,
0.11168535386,
0.11338555186,
0.14753856086,
0.11556345386000001,
0.11341789886,
0.11297574686,
0.11161176086,
0.11202858986
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.7289490151999996,
"stddev": 0.0940400204809518,
"median": 6.6988548487,
"user": 4.04322566,
"system": 3.6306349199999994,
"min": 6.6064451852,
"max": 6.9100734712000005,
"times": [
6.6251504872,
6.6844435722,
6.776939896200001,
6.9100734712000005,
6.6875272392000005,
6.7079074342,
6.689802263200001,
6.7634406122,
6.6064451852,
6.8377599912
]
},
{
"command": "pacquet@main",
"mean": 6.731416546300001,
"stddev": 0.10035374009831723,
"median": 6.714186679700001,
"user": 3.9490101600000003,
"system": 3.5994892199999997,
"min": 6.5916253622,
"max": 6.9321866412,
"times": [
6.7167817652,
6.5916253622,
6.646133645200001,
6.711591594200001,
6.698007830200001,
6.6448942542000005,
6.8395755642000005,
6.9321866412,
6.7589705362000005,
6.774398270200001
]
},
{
"command": "pnpr@HEAD",
"mean": 5.0019743388,
"stddev": 0.09433101300376416,
"median": 4.9789861552,
"user": 2.9074913599999994,
"system": 3.1940237199999997,
"min": 4.924911923200001,
"max": 5.2448642082,
"times": [
4.9753828302,
4.9919816562,
4.9294649972,
4.924911923200001,
4.9549825722000005,
5.007948074200001,
4.982589480200001,
5.2448642082,
4.9469758492,
5.060641797200001
]
},
{
"command": "pnpr@main",
"mean": 4.985948219300001,
"stddev": 0.060656886834700836,
"median": 4.9790786357000005,
"user": 2.94330386,
"system": 3.16176642,
"min": 4.901541975200001,
"max": 5.109625808200001,
"times": [
4.9173916342,
5.002003414200001,
4.9597492352,
4.9574101302,
5.009544890200001,
4.989234046200001,
4.901541975200001,
5.109625808200001,
4.9689232252,
5.0440578342
]
}
]
} |
|
| Branch | pr/13008 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,249.42 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 695.87 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 705.74 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 115.18 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,096.62 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 5,001.97 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 751.10 ms |
Rewrite the clap doc comments that feed 'pnpm install --help' and the top-level global-flag help into plain, user-facing prose, dropping the developer and parity notes that were leaking into the terminal help: mirrors-pnpm mentions, config-field and overrides_with mechanics, env-var names, and ERR_PNPM_* codes. Part of making pacquet's --help read like --help rather than API docs. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
Sweep the clap doc comments across the CLI so 'pnpm <cmd> --help' reads like end-user help rather than developer API docs. Removes the developer and parity notes that were surfacing verbatim in the terminal: mirrors-pnpm mentions, config-field and store-layout mechanics, overrides_with pairing, env-var names, error codes, and not-yet-ported caveats. The behavior of every flag is unchanged; only doc-comment text moved. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
The changeset described only the markdown removal; the PR now rewrites the whole CLI's --help into user-facing prose, so widen the release note to match. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13008 +/- ##
==========================================
- Coverage 85.53% 85.52% -0.01%
==========================================
Files 496 496
Lines 79405 79405
==========================================
- Hits 67917 67915 -2
- Misses 11488 11490 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Confidence Score: 5/5Documentation-only change with no behavioral modifications; safe to merge. All changes are to doc comments that feed into --help output and cargo doc. No logic, flag parsing, or file I/O was altered. The three accuracy concerns raised in prior review rounds have been corrected in the current HEAD. The only remaining item is a cosmetic inconsistency in rebuild.rs that does not affect behavior or trigger the lint. pnpm/crates/cli/src/cli_args/rebuild.rs — the struct-level doc comment on RebuildArgs was not updated to match the rest of the cleanup. Reviews (4): Last reviewed commit: "docs(cli): correct dry-run exit-code and..." | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
This PR updates pacquet’s clap-derived --help output to be concise, user-facing terminal help (instead of developer/API or parity-oriented prose), and re-enables the perfectionist::clap_help_markdown dylint rule to prevent markdown constructs from leaking into --help.
Changes:
- Reword clap doc comments across many CLI commands/flags to be end-user focused and remove markdown links/HTML-like constructs.
- Re-enable
perfectionist::clap_help_markdownindylint.toml, allowing code spans while still forbidding links/HTML. - Add a changeset for the
--helptext cleanup.
Reviewed changes
Copilot reviewed 35 out of 35 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpr/crates/pnpr/src/main.rs | Wraps --osv-db and <cache> placeholder in code spans to avoid HTML-like parsing in help. |
| pnpm/tasks/integrated-benchmark/src/cli_args.rs | Removes intra-doc link markdown from scenario help text. |
| pnpm/crates/cli/src/cli_args/with.rs | Removes internal parsing detail from with help text. |
| pnpm/crates/cli/src/cli_args/version.rs | Rewords pnpm version help text (but currently introduces an inaccurate positional-arg description). |
| pnpm/crates/cli/src/cli_args/update.rs | Simplifies update command and option-group help text for end users. |
| pnpm/crates/cli/src/cli_args/unlink.rs | Rewords unlink help text to be user-facing and less implementation-specific. |
| pnpm/crates/cli/src/cli_args/supported_architectures.rs | Rewrites platform filter help to describe repeat/comma-separated usage without internal config details. |
| pnpm/crates/cli/src/cli_args/set_script.rs | Rewords set-script help to describe user outcome and argument joining. |
| pnpm/crates/cli/src/cli_args/root.rs | Simplifies root help text to user-visible behavior. |
| pnpm/crates/cli/src/cli_args/restart.rs | Removes internal pipeline reference from restart help text. |
| pnpm/crates/cli/src/cli_args/reporter.rs | Rewords reporter enum help to describe output formats in user terms. |
| pnpm/crates/cli/src/cli_args/remove.rs | Removes parity references from remove flags’ help text. |
| pnpm/crates/cli/src/cli_args/rebuild.rs | Removes not-yet-ported/parity caveats from --pending help text. |
| pnpm/crates/cli/src/cli_args/publish.rs | Replaces internal struct-splitting explanation with user-facing publish descriptions. |
| pnpm/crates/cli/src/cli_args/prune.rs | Simplifies --no-ignore-scripts help to user-facing behavior. |
| pnpm/crates/cli/src/cli_args/prefix.rs | Rewords prefix command help with concrete directory criteria. |
| pnpm/crates/cli/src/cli_args/patch_remove.rs | Generalizes patches removal help text. |
| pnpm/crates/cli/src/cli_args/pack.rs | Rewords pack help and removes sequential-implementation note for workspace concurrency. |
| pnpm/crates/cli/src/cli_args/outdated.rs | Replaces a pnpm-docs note with a general sort-order description. |
| pnpm/crates/cli/src/cli_args/lane.rs | Rewords lane command help in user-facing terms. |
| pnpm/crates/cli/src/cli_args/install.rs | Rewrites many install flag descriptions to be user-focused (but --ignore-scripts wording becomes ambiguous/inaccurate). |
| pnpm/crates/cli/src/cli_args/import.rs | Rewords pnpr-server option help text to a simpler user-facing description. |
| pnpm/crates/cli/src/cli_args/ignored_builds.rs | Rewords command help to describe what’s printed rather than internal naming. |
| pnpm/crates/cli/src/cli_args/exec.rs | Rewords recursive exec behavior without internal-module references. |
| pnpm/crates/cli/src/cli_args/docs.rs | Makes docs command help explicitly about opening a browser documentation page. |
| pnpm/crates/cli/src/cli_args/dlx.rs | Removes parity/deferred-deviation notes from dlx help text. |
| pnpm/crates/cli/src/cli_args/deploy.rs | Rewords legacy flag help without implementation detail. |
| pnpm/crates/cli/src/cli_args/create.rs | Simplifies create help text to user-facing description. |
| pnpm/crates/cli/src/cli_args/config.rs | Rewords config command and shared flags help into user-facing descriptions. |
| pnpm/crates/cli/src/cli_args/cli_command.rs | Rewords several global flags (store dir, npmrc auth file, recursive, filter selectors, etc.) to be user-focused. |
| pnpm/crates/cli/src/cli_args/bin.rs | Simplifies bin command help text. |
| pnpm/crates/cli/src/cli_args/approve_builds.rs | Rewords approve-builds help text (but --global description contradicts actual behavior). |
| pnpm/crates/cli/src/cli_args/add.rs | Rewords add command option help text to remove parity/internal file-format detail. |
| dylint.toml | Re-enables perfectionist::clap_help_markdown and configures it to ignore code spans. |
| .changeset/pacquet-clap-help-markdown.md | Adds a changeset describing the --help text cleanup and markdown removal. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm/crates/cli/src/cli_args/exec.rs`:
- Around line 18-19: Update the documentation comment for recursive exec to
state that it runs in all workspace projects by default, in topological order,
and that --filter or --filter-prod can optionally narrow the selected projects.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 50198076-babc-42f9-8c61-c38e55f98e16
📒 Files selected for processing (35)
.changeset/pacquet-clap-help-markdown.mddylint.tomlpnpm/crates/cli/src/cli_args/add.rspnpm/crates/cli/src/cli_args/approve_builds.rspnpm/crates/cli/src/cli_args/bin.rspnpm/crates/cli/src/cli_args/cli_command.rspnpm/crates/cli/src/cli_args/config.rspnpm/crates/cli/src/cli_args/create.rspnpm/crates/cli/src/cli_args/deploy.rspnpm/crates/cli/src/cli_args/dlx.rspnpm/crates/cli/src/cli_args/docs.rspnpm/crates/cli/src/cli_args/exec.rspnpm/crates/cli/src/cli_args/ignored_builds.rspnpm/crates/cli/src/cli_args/import.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/lane.rspnpm/crates/cli/src/cli_args/outdated.rspnpm/crates/cli/src/cli_args/pack.rspnpm/crates/cli/src/cli_args/patch_remove.rspnpm/crates/cli/src/cli_args/prefix.rspnpm/crates/cli/src/cli_args/prune.rspnpm/crates/cli/src/cli_args/publish.rspnpm/crates/cli/src/cli_args/rebuild.rspnpm/crates/cli/src/cli_args/remove.rspnpm/crates/cli/src/cli_args/reporter.rspnpm/crates/cli/src/cli_args/restart.rspnpm/crates/cli/src/cli_args/root.rspnpm/crates/cli/src/cli_args/set_script.rspnpm/crates/cli/src/cli_args/supported_architectures.rspnpm/crates/cli/src/cli_args/unlink.rspnpm/crates/cli/src/cli_args/update.rspnpm/crates/cli/src/cli_args/version.rspnpm/crates/cli/src/cli_args/with.rspnpm/tasks/integrated-benchmark/src/cli_args.rspnpr/crates/pnpr/src/main.rs
💤 Files with no reviewable changes (3)
- pnpm/crates/cli/src/cli_args/rebuild.rs
- pnpm/crates/cli/src/cli_args/dlx.rs
- pnpm/crates/cli/src/cli_args/restart.rs
Review feedback (Copilot, greptile, CodeRabbit): the user-facing rewrite over-removed honest signals, so some flags' --help implied behavior that actually errors or silently does nothing. Restore concise user-facing notes: - approve-builds --global: errors (NotSupportedWithGlobal) -> mark unsupported - version <bump>: errors (NpmStyleNotPorted) -> mark the arg unsupported - rebuild --pending: no packages are recorded as pending -> note no effect - pack --workspace-concurrency: accepted but unused -> note no effect - install --ignore-scripts: clarify packages still install, only scripts skip - exec -r: runs every project by default; --filter only narrows the set Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjtEvz2e14yEVKkhBFQe5V
| #[derive(Debug, Args)] | ||
| pub struct PatchRemoveArgs { | ||
| /// Patches to remove from patchedDependencies. | ||
| /// Patches to remove. |
Summary
This PR makes pacquet's
--helpoutput read like end-user help instead of developer API documentation, and re-enables theperfectionist::clap_help_markdowndylint rule that guards it.pacquet's clap doc comments are dual-purpose: they are both
cargo docAPI docs and the text clap prints for--help. Over time they had accumulated developer- and parity-oriented prose that leaked verbatim into the terminal — mirrors-pnpm notes, config-field and store-layout mechanics,overrides_withpairing, environment-variable names,ERR_PNPM_*codes, internal Rust type references, and not-yet-ported caveats. This PR rewrites those doc comments across the whole CLI into concise, user-facing help and removes the developer notes entirely. No flag behavior changes; only doc-comment text moved.Folded into the same pass, the markdown that
clap_help_markdownflags is cleaned out of the help text: intra-doc links to internal Rust types become the CLI flag they describe or plain words, one inline upstream-issue citation leaves the help text, and an angle-bracketed path placeholder that parsed as an HTML tag is wrapped in a code span. The rule is then dropped from thedisablelist indylint.tomlso it stays enforced. Code spans — backticks around flag names, file names, and literal values — are kept via the rule's ignore_constructs setting, since they read fine in a terminal and stay useful ascargo docdocs.Resolves #12718.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting. — Rust-only:clap doc comments have no TypeScript counterpart (the TS CLI writes its help
strings by hand), so there is nothing to port.
pnpm changeset) if this PR changes any publishedpackage. —
pacquetand@pnpm/pnpr, both patch.clap_help_markdowndylint rule is the regression guard.documentation (
--helptext); no external docs are affected.Summary by CodeRabbit
--helpoutput to remove leftover internal notes and formatting artifacts.