Skip to content
Myr

clarify duplicate option name error

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

authored by Omer Katz · committed by David Lord · parent 976d25b · 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:src/click/core.py+1 added-1 removed
2588 unmodified lines
25892590 for decl in decls:2591 if decl.isidentifier():2592 if name is not None:2593 raise TypeError("Name defined twice")2593 raise TypeError(f"Name '{name}' defined twice")2594 name = decl2595 else:2596 split_char = ";" if decl[:1] == "/" else "/"2597 if split_char in decl:
360 unmodified lines