Skip to content
Myr

Uppercase parameters are lowercased for keyword args.

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 dc36b8b · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:click/core.py+2 added-2 removed
919 unmodified lines
920 opts.append(decl)921922 if name is None and possible_names:923 possible_names.sort(key=lambda x: len(x[0]))924 name = possible_names[-1][1].replace('-', '_')924 name = possible_names[-1][1].replace('-', '_').lower()925 if not isidentifier(name):926 name = None927928 if name is None:
130 unmodified lines
1059 if not decls:1060 raise TypeError('Could not determine name for argument')1061 if len(decls) == 1:1062 name = arg = decls[0]1063 name = name.replace('-', '_')1063 name = name.replace('-', '_').lower()1064 elif len(decls) == 2:1065 name, arg = decls1066 else:1067 raise TypeError('Arguments take exactly one or two '
13 unmodified lines