Closed rjeczalik closed 8 years ago
Flag package tries to call String() on a zero-value of type registered to a FlagSet:
https://github.com/golang/go/blob/7419073/src/flag/flag.go#L390-L394
This PR makes the fieldValue zero-value safe, at least to not panic when calling String().
Fixes #50.
Flag package tries to call String() on a zero-value of type registered to a FlagSet:
https://github.com/golang/go/blob/7419073/src/flag/flag.go#L390-L394
This PR makes the fieldValue zero-value safe, at least to not panic when calling String().
Fixes #50.