We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb432b0 commit 2b0b1c4Copy full SHA for 2b0b1c4
flags.go
@@ -66,7 +66,7 @@ func (f Flags) SetDefault(long string, val any) bool {
66
}
67
68
// BuildFlags creates a slice of Flags from a struct.
69
-// It supports nested structs and will only generate flags if it finds a 'short' and 'long' tag.
+// It supports nested structs and will only generate flags if it finds a 'short' or 'long' tag.
70
func BuildFlags(obj any) Flags {
71
v := reflect.ValueOf(obj)
72
if v.Kind() != reflect.Ptr {
0 commit comments