Commit 6e39e7d
committed
Add --version flag support for but CLI
Support printing the CLI version when invoked with --version or -V. The clap derive was updated to pull the version from the VERSION environment variable (falling back to "dev"), and handle_args now intercepts explicit --version/-V invocations to print "but <version>" and exit early. This makes the behavior consistent with the existing pattern used elsewhere for embedding the build-time version.1 parent b3b1a76 commit 6e39e7d
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
0 commit comments