Few typos fixed
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by yelite · committed by yelite · parent 5b7b729 · Browse files · 4 files·+6 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+6 added−6 removed
- other:+6 added−6 removed
Provenance
- Commit
3dd15df- Tree
b17daa0- Author
yelite <yelite958@gmail.com>- Committer
yelite <yelite958@gmail.com>- Parent
5b7b729
4 files changed+6 added−6 removed
modified:docs/options.rst+1 added-1 removed
203 unmodified lines204 In such cases you need two concepts: eager parameters and a callback. An205 eager parameter is a parameter that is handled before others and a206 callback is what executes after the parameter is handled. The eagerness207 is necessary so that an earlier required parameter does not produce an208-error message. For isntance if ``--version`` was not eager and a208+error message. For instance if ``--version`` was not eager and a209 parameter ``--foo`` was required and defined before, you would need to210 specify it for ``--version`` to work.211 212 A callback is a function that is invoked with two parameters: the current119 unmodified linesmodified:docs/parameters.rst+1 added-1 removed
55 unmodified lines56 writing.57 58 Custom parameter types can be implemented by subclassing59 :class:`click.ParamType`. For simple cases passing a python function that60-failes with a `ValueError` is also supported though discouraged.60+fails with a `ValueError` is also supported though discouraged.61 62 Parameter Names63 ---------------64 44 unmodified linesmodified:docs/setuptools.rst+1 added-1 removed
4 unmodified lines5 modules that are distributed with setuptools instead of using UNIX6 shebangs. There are a bunch of reasons for this.7 8 The first one is that setuptools automatically generates executable9-wrapeprs for Windows so your command line utilies work on Windows too.9+wrappers for Windows so your command line utilities work on Windows too.10 11 The second reason is that setuptools scripts work with virtualenv on UNIX12 without the virtualenv having to be activated. This is a very useful13 concept which allows you to bundle your scripts with all requirements into63 unmodified linesmodified:docs/why.rst+3 added-3 removed
2 unmodified lines3 4 There are so many libraries out there for writing command line utilities,5 why does click exist?6 7-This question is easy to answer: beacuse there is not a single command7+This question is easy to answer: because there is not a single command8 line utility for Python out there which ticks the following boxes:9 10 * is lazily composable without restrictions11 * fully follows the UNIX command line conventions18 unmodified lines30 31 Click is designed to be fun to work with and at the same time not stand in32 your way. It's not overly flexible at the same time either. Currently33 for instance it does not allow you to customize the help pages too much.34-This is intentional because click is desigend to allow you to nest command35-line utilities. The idae is that you can have a system that works34+This is intentional because click is designed to allow you to nest command35+line utilities. The idea is that you can have a system that works36 together with another system by tacking two click instances together and37 they will continue working as they should.38 39 Too much customizability would break this promise.4 unmodified lines