Skip to content
Myr

Merge pull request #30 from smorin/master

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

fixed a typo in english chose to choose

authored by Armin Ronacher · committed by Armin Ronacher · parents b2475cd, 962e97a · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:docs/options.rst+1 added-1 removed
188 unmodified lines
189190 $ python digest.py --hash-type=foo191 Usage: digest.py [OPTIONS]192193 Error: Invalid value for hash_type: invalid choice: foo. (chose from md5, sha1)193 Error: Invalid value for hash_type: invalid choice: foo. (choose from md5, sha1)194195 $ python digest.py --help196 Usage: digest.py [OPTIONS]197
208 unmodified lines
modified:click.py+1 added-1 removed
827 unmodified lines
828829 def convert(self, value, param, ctx):830 if value in self.choices:831 return value832 self.fail('invalid choice: %s. (chose from %s)' %832 self.fail('invalid choice: %s. (choose from %s)' %833 (value, ', '.join(self.choices)), param, ctx)834835 def __repr__(self):836 return 'Choice(%r)' % list(self.choices)
820 unmodified lines