From b6699b087871ef261e444a58f2746c7414b16064 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 25 Aug 2026 02:18:05 +0100 Subject: Only require documentation of non-hidden options. --- extractdoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extractdoc.py') diff --git a/extractdoc.py b/extractdoc.py index 14cfb94..cd7c329 100644 --- a/extractdoc.py +++ b/extractdoc.py @@ -18,7 +18,8 @@ def clickfunc2commands(func): info = ctx.to_info_dict() return [Command(name, (frozenset({tuple(parameter["opts"]) - for parameter in properties["params"]}) + for parameter in properties["params"] + if not parameter["hidden"]}) # We add the -h variant of the help option to all # subcommands through the context settings. This does not # reflect properly in the info dict. Hence this hack to add -- cgit 1.4.1