Commit b40fd69
trible: --version / -V (basic CLI hygiene)
`trible --version` rejected the flag entirely:
$ trible --version
error: unexpected argument '--version' found
That's a basic CLI hygiene gap — every `cargo install`-able tool
is expected to support `--version` and `-V` for sanity-checking
which build is on PATH, for bug reports, and for shell-level
version pinning checks. The clap derive opts in via a single
`#[command(version, ...)]` attribute on the parser.
$ trible --version
trible 0.36.0
$ trible -V
trible 0.36.0
Locked in basic.rs with a regex match on `trible \d+\.\d+\.\d+`
covering both flag forms.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d5a00e3 commit b40fd69
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments