Skip to content
Myr

Bugfix: Only 'nargs' completions are given

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 e539011 · Browse files · 1 file+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:click/_bashcomplete.py+5 added-4 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 if len(args) <= param.nargs or param.nargs == -1:66 try:67 choices.extend(param.autocompletion)68 except AttributeError:69 pass67 try:68 choices.extend(param.autocompletion)69 except AttributeError:70 pass7172 for item in choices:73 if item.startswith(incomplete):74 echo(item)
11 unmodified lines