diff options
| author | MidnightRocket <[email protected]> | 2025-03-18 14:07:18 +0100 |
|---|---|---|
| committer | MidnightRocket <[email protected]> | 2025-03-18 15:17:18 +0100 |
| commit | 9edfc8d416bea8aecfbdf0790a838f95ae133078 (patch) | |
| tree | bc36aae6386440a7c1044e3b15a85965ecf7e691 | |
| parent | 5ca813443bd2a4d9f46a253ea0407d23b3790713 (diff) | |
Fix defaultIsZeroValue check for generic Value type
| -rw-r--r-- | flag.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -551,7 +551,7 @@ func (f *Flag) defaultIsZeroValue() bool { case *intSliceValue, *stringSliceValue, *stringArrayValue: return f.DefValue == "[]" default: - switch f.Value.String() { + switch f.DefValue { case "false": return true case "<nil>": |
