Skip to content
Myr

Protection against creating invalid keyword arguments.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 1726e47 · Browse files · 1 file+2 added−0 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−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:click/core.py+2 added
905 unmodified lines
906907 if name is None and possible_names:908 possible_names.sort(key=len)909 name = possible_names[-1].replace('-', '_')910 if not isidentifier(name):911 name = None912913 if name is None:914 raise TypeError('Could not determine name for option')915
145 unmodified lines