From e2c55d143e48ce4cdb027163dc99179a93e6abc0 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Wed, 8 Aug 2018 14:45:26 +1000 Subject: [PATCH] Really don't suggest hidden commands. --- context.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/context.go b/context.go index 3a942a8..e0efb3a 100644 --- a/context.go +++ b/context.go @@ -524,6 +524,9 @@ func checkMissingChildren(node *Node) error { } } for _, child := range node.Children { + if child.Hidden { + continue + } if child.Argument != nil { if !child.Argument.Required { continue