Skip to content
Myr

Fix error message for unknown switches (#146)

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

authored by Rotem Yaari · committed by Armin Ronacher · parent 8ff7d53 · 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:click/parser.py+1 added-1 removed
312 unmodified lines
313 option = self._short_opt.get(opt)314 i += 1315316 if not option:317 self._error('no such option: %s' % opt)317 self._error('no such option: %s' % (arg if arg.startswith('--') else opt))318 if option.takes_value:319 # Any characters left in arg? Pretend they're the320 # next arg, and stop consuming characters of arg.321 if i < len(arg):
26 unmodified lines