Commit 9bd2a4e
## Summary
Closes #949.
Adds `Examples:` blocks (via clap `after_help`) to the four `vp env`
subcommands flagged in the issue, so the intended invocation modes are
visible directly from `--help`:
- `vp env default` — show vs. set (with/without `<version>`)
- `vp env pin` — show / pin / range / `--unpin`
- `vp env use` — default / override `<version>` / `--unset`
- `vp env exec` — explicit `--node <version>` vs. shim mode
Also tightens per-argument doc comments ("If not provided" → "If
omitted", missing period).
No behavior changes. The clap auto-generated `Usage:` line is unchanged.
The `command-env-use` snap was regenerated to capture the new `--help`
output.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: MK <fengmk2@gmail.com>
1 parent ada9d33 commit 9bd2a4e
2 files changed
Lines changed: 35 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | | - | |
303 | | - | |
| 306 | + | |
| 307 | + | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
| |||
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
333 | 342 | | |
334 | | - | |
335 | | - | |
| 343 | + | |
| 344 | + | |
336 | 345 | | |
337 | 346 | | |
338 | 347 | | |
| |||
383 | 392 | | |
384 | 393 | | |
385 | 394 | | |
386 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
387 | 402 | | |
388 | | - | |
389 | | - | |
390 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
391 | 406 | | |
392 | 407 | | |
393 | 408 | | |
| |||
417 | 432 | | |
418 | 433 | | |
419 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
420 | 439 | | |
421 | | - | |
422 | | - | |
| 440 | + | |
| 441 | + | |
423 | 442 | | |
424 | 443 | | |
425 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments