Commit 6c4b2a2
fix(cli):
fang's `-v`/`--version` derives from debug build info, which renders
"unknown (built from source)" for an ldflags-stamped binary. Pass
fang.WithVersion/WithCommit so it shows the real version+commit, and prepend the
version to the root Long so it appears on top of the help banner.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>-v/--version shows the stamped version + version on top of help1 parent bc843b4 commit 6c4b2a2
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
0 commit comments