about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-08-25 02:18:05 +0100
committerArun Isaac2026-08-25 02:18:05 +0100
commitb6699b087871ef261e444a58f2746c7414b16064 (patch)
treea31e385be87f692be9af1895808efae077bdc8d2
parentd45bc1aa4e3f79c17daa140df6cf6d1558c2fc8e (diff)
downloaddomagi-b6699b087871ef261e444a58f2746c7414b16064.tar.gz
domagi-b6699b087871ef261e444a58f2746c7414b16064.tar.lz
domagi-b6699b087871ef261e444a58f2746c7414b16064.zip
Only require documentation of non-hidden options.
-rw-r--r--extractdoc.py3
1 files changed, 2 insertions, 1 deletions
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