Skip to content

docs(rust/cli): clean up --help texts - #13008

Merged
zkochan merged 8 commits into
mainfrom
claude/clap-help-markdown-cleanup-q8ioi9
Jul 15, 2026
Merged

zkochan merged 8 commits into
mainfrom
claude/clap-help-markdown-cleanup-q8ioi9

Conversation

@KSXGitHub

@KSXGitHub KSXGitHub commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR makes pacquet's --help output read like end-user help instead of developer API documentation, and re-enables the perfectionist::clap_help_markdown dylint rule that guards it.

pacquet's clap doc comments are dual-purpose: they are both cargo doc API 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_with pairing, 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_markdown flags 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 the disable list in dylint.toml so 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 as cargo doc docs.

Resolves #12718.

Squash Commit Body

Make pacquet's --help read like user-facing help rather than developer API
docs, and re-enable the perfectionist::clap_help_markdown dylint rule.

The clap doc comments are dual-purpose: cargo doc API docs and the text
clap prints for --help. They had accumulated developer and parity prose
that leaked into the terminal (mirrors-pnpm notes, config-field and
store-layout mechanics, overrides_with pairing, env-var names, ERR_PNPM_*
codes, internal type references, not-yet-ported caveats). Rewrite them
across the whole CLI into concise user-facing help and drop those notes;
no flag behavior changes, only doc-comment text moved.

Clean out the markdown the rule flags in the same pass: intra-doc links to
internal types become the CLI flag they describe or plain words, one inline
issue citation leaves the help text, and an angle-bracketed path placeholder
that parsed as an HTML tag is wrapped in a code span. Re-enable the rule by
dropping it from the dylint.toml disable list; keep code spans via the
rule's ignore_constructs setting since they read fine in a terminal.

Closes pnpm/pnpm#12718

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    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.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. — pacquet and @pnpm/pnpr, both patch.
  • Added or updated tests. — N/A: no runtime logic changed; the re-enabled
    clap_help_markdown dylint rule is the regression guard.
  • Updated the documentation if needed. — N/A: the change is itself
    documentation (--help text); no external docs are affected.

Summary by CodeRabbit

  • Documentation
    • Improved and condensed user-facing CLI help and command descriptions across many package management and publishing commands.
    • Cleaned up terminal --help output to remove leftover internal notes and formatting artifacts.
    • Clarified option wording for platform filtering, recursive execution, configuration locations, vulnerability database path formatting, and link/unlink behavior.
  • Chores
    • Updated the CLI help lint configuration to keep validation enabled while allowing a narrowly scoped formatting exception.

…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
@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 19a55b8a-f3eb-4adc-b85a-21ca0bcd99ba

📥 Commits

Reviewing files that changed from the base of the PR and between f977b9b and 54c5ff8.

📒 Files selected for processing (2)
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/cli/src/cli_args/unlink.rs
💤 Files with no reviewable changes (1)
  • pnpm/crates/cli/src/cli_args/install.rs

📝 Walkthrough

Walkthrough

The PR rewrites pacquet and pnpr CLI help comments into concise user-facing prose, removes internal markdown artifacts, and re-enables the clap_help_markdown lint while excluding code spans.

Changes

Pacquet CLI help cleanup

Layer / File(s) Summary
Lint and release configuration
.changeset/..., dylint.toml
The changeset records the help cleanup, and the markdown lint is enabled with only code_span ignored.
Command help text
pnpm/crates/cli/src/cli_args/{approve_builds,bin,config,create,deploy,dlx,docs,exec,ignored_builds,lane,outdated,pack,patch_remove,prefix,publish,rebuild,remove,reporter,restart,root,set_script,unlink,version,with}.rs, pnpm/tasks/integrated-benchmark/src/cli_args.rs, pnpr/crates/pnpr/src/main.rs
Command and type documentation is shortened or rewritten to remove internal implementation and parity details from CLI help.
Option help text
pnpm/crates/cli/src/cli_args/{add,cli_command,import,install,prune,supported_architectures,update}.rs
Flag descriptions are condensed or clarified while argument bindings, field types, and runtime behavior remain unchanged.

Estimated code review effort: 2 (Simple) | ~15 minutes

Assessment against linked issues

Objective Addressed Explanation
Clean markdown and internal references from pacquet --help text [#12718] ✅
Re-enable perfectionist::clap_help_markdown while configuring code-span handling [#12718] ✅

Possibly related PRs

  • pnpm/pnpm#12618: Directly relates to the rewritten set-script command documentation.
  • pnpm/pnpm#12719: Also changes dylint.toml configuration for perfectionist::clap_help_markdown.

Suggested labels: product: pacquet, product: pnpr

Suggested reviewers: zkochan, copilot

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/clap-help-markdown-cleanup-q8ioi9

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@KSXGitHub KSXGitHub changed the title docs(pacquet/cli): clean up --help text docs(rust/cli): clean up --help text Jul 14, 2026
@KSXGitHub KSXGitHub changed the title docs(rust/cli): clean up --help text docs(rust/cli): clean up --help texts Jul 14, 2026
Comment thread dylint.toml Resolved
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.01     19.8±0.68ms    18.9 MB/sec    1.00     19.7±0.33ms    19.0 MB/sec
packument/parse                1.00     71.2±1.51µs   931.4 MB/sec    1.00     71.5±1.99µs   927.2 MB/sec
tarball/download_dependency    1.00      4.5±0.04ms   963.7 KB/sec    1.00      4.5±0.11ms   968.1 KB/sec

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
@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 14, 2026
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 94af468d7942

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.828 ± 0.180 3.600 4.096 1.83 ± 0.12
pacquet@main 3.797 ± 0.205 3.615 4.104 1.81 ± 0.13
pnpr@HEAD 2.097 ± 0.103 1.981 2.359 1.00
pnpr@main 2.166 ± 0.149 2.008 2.378 1.03 ± 0.09
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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 673.2 ± 12.1 652.7 691.0 1.00
pacquet@main 684.4 ± 66.1 648.5 870.3 1.02 ± 0.10
pnpr@HEAD 751.1 ± 65.2 706.5 919.2 1.12 ± 0.10
pnpr@main 736.1 ± 27.5 695.5 793.3 1.09 ± 0.05
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.454 ± 0.047 4.372 4.518 2.02 ± 0.12
pacquet@main 4.378 ± 0.044 4.310 4.475 1.98 ± 0.12
pnpr@HEAD 2.249 ± 0.128 2.077 2.425 1.02 ± 0.08
pnpr@main 2.207 ± 0.126 2.094 2.457 1.00
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.516 ± 0.025 1.485 1.556 2.15 ± 0.14
pacquet@main 1.484 ± 0.041 1.426 1.572 2.10 ± 0.14
pnpr@HEAD 0.706 ± 0.043 0.669 0.824 1.00
pnpr@main 0.717 ± 0.085 0.682 0.957 1.02 ± 0.14
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.247 ± 0.066 3.184 3.367 4.67 ± 0.13
pacquet@main 3.221 ± 0.051 3.178 3.350 4.63 ± 0.11
pnpr@HEAD 0.696 ± 0.013 0.668 0.710 1.00
pnpr@main 0.707 ± 0.063 0.672 0.882 1.02 ± 0.09
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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 714.7 ± 12.1 698.1 738.3 6.26 ± 0.41
pacquet@main 709.8 ± 9.6 696.4 725.2 6.22 ± 0.40
pnpr@HEAD 115.2 ± 2.2 111.6 117.8 1.01 ± 0.07
pnpr@main 114.2 ± 7.3 110.6 147.5 1.00
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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 6.729 ± 0.094 6.606 6.910 1.35 ± 0.03
pacquet@main 6.731 ± 0.100 6.592 6.932 1.35 ± 0.03
pnpr@HEAD 5.002 ± 0.094 4.925 5.245 1.00 ± 0.02
pnpr@main 4.986 ± 0.061 4.902 5.110 1.00
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
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13008
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
4,454.30 ms
(+4.21%)Baseline: 4,274.36 ms
5,129.24 ms
(86.84%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
3,247.17 ms
(+7.74%)Baseline: 3,013.97 ms
3,616.76 ms
(89.78%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
1,516.45 ms
(+13.26%)Baseline: 1,338.96 ms
1,606.75 ms
(94.38%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
714.72 ms
(+13.43%)Baseline: 630.09 ms
756.11 ms
(94.53%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
3,828.01 ms
(-0.78%)Baseline: 3,858.24 ms
4,629.89 ms
(82.68%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
6,728.95 ms
(-4.43%)Baseline: 7,040.85 ms
8,449.02 ms
(79.64%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
673.15 ms
(+3.87%)Baseline: 648.07 ms
777.69 ms
(86.56%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13008
Testbedpnpr

⚠️ 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-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,249.42 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
695.87 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
705.74 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
115.18 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,096.62 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
5,001.97 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
751.10 ms
🐰 View full continuous benchmarking report in Bencher

claude added 3 commits July 15, 2026 05:54
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-commenter

codecov-commenter commented Jul 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.52%. Comparing base (e36df0a) to head (54c5ff8).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KSXGitHub
KSXGitHub marked this pull request as ready for review July 15, 2026 08:36
@KSXGitHub
KSXGitHub requested a review from zkochan as a code owner July 15, 2026 08:36
Copilot AI review requested due to automatic review settings July 15, 2026 08:36
@greptile-apps

greptile-apps Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Documentation-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

Comment thread pnpm/crates/cli/src/cli_args/rebuild.rs Resolved
Comment thread pnpm/crates/cli/src/cli_args/pack.rs Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_markdown in dylint.toml, allowing code spans while still forbidding links/HTML.
  • Add a changeset for the --help text 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.

Comment thread pnpm/crates/cli/src/cli_args/version.rs Resolved
Comment thread pnpm/crates/cli/src/cli_args/install.rs Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 30a59d0 and 94af468.

📒 Files selected for processing (35)
  • .changeset/pacquet-clap-help-markdown.md
  • dylint.toml
  • pnpm/crates/cli/src/cli_args/add.rs
  • pnpm/crates/cli/src/cli_args/approve_builds.rs
  • pnpm/crates/cli/src/cli_args/bin.rs
  • pnpm/crates/cli/src/cli_args/cli_command.rs
  • pnpm/crates/cli/src/cli_args/config.rs
  • pnpm/crates/cli/src/cli_args/create.rs
  • pnpm/crates/cli/src/cli_args/deploy.rs
  • pnpm/crates/cli/src/cli_args/dlx.rs
  • pnpm/crates/cli/src/cli_args/docs.rs
  • pnpm/crates/cli/src/cli_args/exec.rs
  • pnpm/crates/cli/src/cli_args/ignored_builds.rs
  • pnpm/crates/cli/src/cli_args/import.rs
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/cli/src/cli_args/lane.rs
  • pnpm/crates/cli/src/cli_args/outdated.rs
  • pnpm/crates/cli/src/cli_args/pack.rs
  • pnpm/crates/cli/src/cli_args/patch_remove.rs
  • pnpm/crates/cli/src/cli_args/prefix.rs
  • pnpm/crates/cli/src/cli_args/prune.rs
  • pnpm/crates/cli/src/cli_args/publish.rs
  • pnpm/crates/cli/src/cli_args/rebuild.rs
  • pnpm/crates/cli/src/cli_args/remove.rs
  • pnpm/crates/cli/src/cli_args/reporter.rs
  • pnpm/crates/cli/src/cli_args/restart.rs
  • pnpm/crates/cli/src/cli_args/root.rs
  • pnpm/crates/cli/src/cli_args/set_script.rs
  • pnpm/crates/cli/src/cli_args/supported_architectures.rs
  • pnpm/crates/cli/src/cli_args/unlink.rs
  • pnpm/crates/cli/src/cli_args/update.rs
  • pnpm/crates/cli/src/cli_args/version.rs
  • pnpm/crates/cli/src/cli_args/with.rs
  • pnpm/tasks/integrated-benchmark/src/cli_args.rs
  • pnpr/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

Comment thread pnpm/crates/cli/src/cli_args/exec.rs Resolved
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
Copilot AI review requested due to automatic review settings July 15, 2026 08:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated 1 comment.

#[derive(Debug, Args)]
pub struct PatchRemoveArgs {
/// Patches to remove from patchedDependencies.
/// Patches to remove.
@zkochan
zkochan merged commit 86e613c into main Jul 15, 2026
38 checks passed
@zkochan
zkochan deleted the claude/clap-help-markdown-cleanup-q8ioi9 branch July 15, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean markdown out of clap --help text and re-enable perfectionist::clap_help_markdown (pacquet)

5 participants