`--show-params` skips nested subcommands
Closed this issue · 2 comments
themoep commented
When using nested subcommands, --show-params
skips anything deeper than subcommands.
As an example:
#!/usr/bin/env python3
import click_extra
@click_extra.extra_group(params=[click_extra.ShowParamsOption()])
@click_extra.option("--first")
def main(first):
print(first)
@main.group(params=[])
@click_extra.option("--second")
def subcommand(second):
print(second)
@subcommand.command(params=[])
@click_extra.option("--third")
def subsubcommand(third):
print(third)
if __name__ == "__main__":
main()
Option third
is not shown in the param output table. As far as I can tell this is due to walk_params
not recursing into subcommands at https://github.com/kdeldycke/click-extra/blob/main/click_extra/parameters.py#L356
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.