Skip to content
Myr

Merge pull request #55 from fgimian/aliased-group-typo

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

Added missing list_commands parameter for AliasedGroup example in docs

authored by Armin Ronacher · committed by Armin Ronacher · parents 748b60c, ce67f3c · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/advanced.rst+1 added-1 removed
35 unmodified lines
36 def get_command(self, ctx, cmd_name):37 rv = click.Group.get_command(self, ctx, cmd_name)38 if rv is not None:39 return rv40 matches = [x for x in self.list_commands()40 matches = [x for x in self.list_commands(ctx)41 if x.startswith(cmd_name)]42 if not matches:43 return None44 elif len(matches) == 1:
56 unmodified lines