Skip to content

Commit b811e32

Browse files
committed
fix: whoops, forgot to prefix "and"
1 parent 47b090f commit b811e32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.go

+6
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ MAIN:
154154
}
155155
}
156156

157+
if len(tag.And) != 0 {
158+
for i := range tag.And {
159+
tag.And[i] = tag.XorPrefix + tag.And[i]
160+
}
161+
}
162+
157163
// Nested structs are either commands or args, unless they implement the Mapper interface.
158164
if field.value.Kind() == reflect.Struct && (tag.Cmd || tag.Arg) && k.registry.ForValue(fv) == nil {
159165
typ := CommandNode

0 commit comments

Comments
 (0)