fix: hidden tag is not passed to the flag object

Or is it not supposed to be passed?
This commit is contained in:
Matthias Fax
2019-01-19 18:57:21 +01:00
committed by Alec Thomas
parent a6ce719390
commit fcf5f9bc1a
+1
View File
@@ -204,6 +204,7 @@ func buildField(k *Kong, node *Node, v reflect.Value, ft reflect.StructField, fv
PlaceHolder: tag.PlaceHolder,
Env: tag.Env,
Group: tag.Group,
Hidden: tag.Hidden,
}
value.Flag = flag
node.Flags = append(node.Flags, flag)