Skip to content
Myr

Documentation cleanup

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

authored by Nicholas Wiles · committed by Nicholas Wiles · parent 33cd869 · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:click/_bashcomplete.py+3 added-1 removed
96 unmodified lines
97 return False9899def get_user_autocompletions(ctx, args, incomplete, cmd_param):100 """101 :param ctx: context associated with the parsed command102 :param args: full list of args103 :param incomplete: the incomplete text to autocomplete104 :param cmd_param: command definition105 :return: all the possible user-specified completions for the param106 """107 choices = []
36 unmodified lines
144 if isinstance(param, Option):145 choices.extend([param_opt for param_opt in param.opts + param.secondary_opts146 if param_opt not in all_args or param.multiple])147 found_param = True145148 if not found_param:149 # completion for option values by choices150 for cmd_param in ctx.command.params:151 if isinstance(cmd_param, Option) and is_incomplete_option(all_args, cmd_param):
42 unmodified lines