Skip to content
Myr

Fixed a bug, where autocompletion would not work for nested multicommands

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Claudio Bandera · committed by Claudio Bandera · parent d449791 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:click/_bashcomplete.py+2 added-1 removed
61 unmodified lines
62 choices.extend(ctx.command.list_commands(ctx))63 else:64 for param in ctx.command.params:65 if isinstance(param, Argument):66 arguments = [k for k in args if k != ctx.command.name]66 if len(args) <= param.nargs or param.nargs == -1:67 if len(arguments) <= param.nargs or param.nargs == -1:68 try:69 choices.extend(param.autocompletion)70 except AttributeError:71 pass
15 unmodified lines