Skip to content
Myr

Merge pull request #54 from fgimian/optparse-typo

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

Repaired incorrect call to fail function in optparse

authored by Armin Ronacher · committed by Armin Ronacher · parents 40987c9, dce3b86 · 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
292 unmodified lines
293 option = self._short_opt.get(opt)294 i += 1 # we have consumed a character295296 if not option:297 self.fail('no such option: %s' % opt)297 self.error('no such option: %s' % opt)298 if option.takes_value:299 # Any characters left in arg? Pretend they're the300 # next arg, and stop consuming characters of arg.301 if i < len(arg):
41 unmodified lines