Skip to content
Myr

Fix a typo

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

Fix a typo in parsing boolean values

authored by SWu · committed by GitHub · parent a87829d · 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/types.py+1 added-1 removed
275 unmodified lines
276 def convert(self, value, param, ctx):277 if isinstance(value, bool):278 return bool(value)279 value = value.lower()280 if value in ('true', 't,' '1', 'yes', 'y'):280 if value in ('true', 't', '1', 'yes', 'y'):281 return True282 elif value in ('false', 'f', '0', 'no', 'n'):283 return False284 self.fail('%s is not a valid boolean' % value, param, ctx)
310 unmodified lines