diff options
| author | Arun Isaac | 2026-08-25 02:18:05 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-08-25 02:18:05 +0100 |
| commit | b6699b087871ef261e444a58f2746c7414b16064 (patch) | |
| tree | a31e385be87f692be9af1895808efae077bdc8d2 /extractdoc.py | |
| parent | d45bc1aa4e3f79c17daa140df6cf6d1558c2fc8e (diff) | |
| download | domagi-b6699b087871ef261e444a58f2746c7414b16064.tar.gz domagi-b6699b087871ef261e444a58f2746c7414b16064.tar.lz domagi-b6699b087871ef261e444a58f2746c7414b16064.zip | |
Only require documentation of non-hidden options.
Diffstat (limited to 'extractdoc.py')
| -rw-r--r-- | extractdoc.py | 3 |
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 |
