Rename IgnoreFieldsRegex -> IgnoreFields.

This commit is contained in:
Alec Thomas
2021-09-27 16:31:54 +10:00
parent 1d48b6f720
commit 5c7b038540
4 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ func buildNode(k *Kong, v reflect.Value, typ NodeType, seenFlags map[string]bool
MAIN:
for _, field := range fields {
for _, r := range k.ignoreFieldsRegex {
for _, r := range k.ignoreFields {
if r.MatchString(v.Type().Name() + "." + field.field.Name) {
continue MAIN
}