fix: hidden tag is not passed to the flag object
Or is it not supposed to be passed?
This commit is contained in:
committed by
Alec Thomas
parent
a6ce719390
commit
fcf5f9bc1a
@@ -204,6 +204,7 @@ func buildField(k *Kong, node *Node, v reflect.Value, ft reflect.StructField, fv
|
|||||||
PlaceHolder: tag.PlaceHolder,
|
PlaceHolder: tag.PlaceHolder,
|
||||||
Env: tag.Env,
|
Env: tag.Env,
|
||||||
Group: tag.Group,
|
Group: tag.Group,
|
||||||
|
Hidden: tag.Hidden,
|
||||||
}
|
}
|
||||||
value.Flag = flag
|
value.Flag = flag
|
||||||
node.Flags = append(node.Flags, flag)
|
node.Flags = append(node.Flags, flag)
|
||||||
|
|||||||
Reference in New Issue
Block a user