diff options
| author | Georges Varouchas <[email protected]> | 2025-06-09 22:38:23 +0400 |
|---|---|---|
| committer | Georges Varouchas <[email protected]> | 2025-06-09 23:14:57 +0400 |
| commit | 4730aa0d979f34d4f7427d524b84043557ba72ef (patch) | |
| tree | 1216ad677454c2ffba6da37299a473a2296d5b98 /string_array_test.go | |
| parent | f4c97c2487b06cff392d2958534e7195f79847fb (diff) | |
fix help message for Func and BoolFunc flags #430
* have '.Type()' for boolfuncValue return "boolfunc" (dedicated value,
which now makes it distinct from funcValue)
* hide extra "(default )" by stating that "" should be treated as
a zero value for a boolFlag
note:
- a boolfuncValue matches 'case boolFlag:', as it
implements the boolFlag interface,
- treating "" as a value which shouldn't trigger a "(default )"
for a regular Bool flag does not look like a breaking change
* hide extra "[=something]" for boolfuncValue
* set default placeholder name for "boolfunc" and "func" flag types
Diffstat (limited to 'string_array_test.go')
0 files changed, 0 insertions, 0 deletions
