aboutsummaryrefslogtreecommitdiff
path: root/bool_slice_test.go
diff options
context:
space:
mode:
authorGeorges Varouchas <[email protected]>2025-06-09 22:38:23 +0400
committerGeorges Varouchas <[email protected]>2025-06-09 23:14:57 +0400
commit4730aa0d979f34d4f7427d524b84043557ba72ef (patch)
tree1216ad677454c2ffba6da37299a473a2296d5b98 /bool_slice_test.go
parentf4c97c2487b06cff392d2958534e7195f79847fb (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 'bool_slice_test.go')
0 files changed, 0 insertions, 0 deletions