diff options
| author | Hugo Hromic <[email protected]> | 2023-07-14 20:12:47 +0100 |
|---|---|---|
| committer | Hugo Hromic <[email protected]> | 2023-07-14 20:12:52 +0100 |
| commit | c73f38cd547cccc7930cf2e302c835e3f424ffd4 (patch) | |
| tree | eafc87355350d43926401b91abe98d4d2e1d4ec1 /subcommand.go | |
| parent | 463902ef7d1219df0c6306a3838f4e003da92f91 (diff) | |
Improve handling of version flag
* Only use/show builtin `--version` flag if args are versioned with a non-empty `Version()`
* If args define a `--version` flag, honor it and disable/hide the builtin version flag
* Only return `ErrVersion` when using the builtin version flag
Diffstat (limited to 'subcommand.go')
0 files changed, 0 insertions, 0 deletions
