From fcf5f9bc1a4fc3388f490d77c7477a5681b1f97a Mon Sep 17 00:00:00 2001 From: Matthias Fax Date: Sat, 19 Jan 2019 18:57:21 +0100 Subject: [PATCH] fix: `hidden` tag is not passed to the flag object Or is it not supposed to be passed? --- build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/build.go b/build.go index 49cc767..829e16e 100644 --- a/build.go +++ b/build.go @@ -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)