Skip to content
Myr

Repaired incorrect call to fail function in optparse

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

authored by Fotis Gimian · committed by Fotis Gimian · parent 5ffa7c8 · 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/_optparse.py+1 added-1 removed
468 unmodified lines
469 option = self._short_opt.get(opt)470 i += 1 # we have consumed a character471472 if not option:473 self.fail('no such option: %s' % opt)473 self.error('no such option: %s' % opt)474 if option.takes_value:475 # Any characters left in arg? Pretend they're the476 # next arg, and stop consuming characters of arg.477 if i < len(arg):
121 unmodified lines