Docs: fixes
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Julen Ruiz Aizpuru · committed by Julen Ruiz Aizpuru · parent a5a0471 · Browse files · 3 files·+10 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+10 added−10 removed
- other:+10 added−10 removed
Provenance
- Commit
a218f6c- Tree
95f0f36- Author
Julen Ruiz Aizpuru <julenx@gmail.com>- Committer
Julen Ruiz Aizpuru <julenx@gmail.com>- Parent
a5a0471
3 files changed+10 added−10 removed
modified:click/types.py+2 added-2 removed
25 unmodified lines26 name = None27 28 #: if a list of this type is expected and the value is pulled from a29 #: string environment variable, this is what splits it up. `None`30- #: means any whitespace. For all parameter the general rule is that30+ #: means any whitespace. For all parameters the general rule is that31 #: whitespace splits them up. The exception are paths and files which32- #: are split by ``os.path.pathsep`` by default (":" on unix and ";' on32+ #: are split by ``os.path.pathsep`` by default (":" on unix and ";" on33 #: windows).34 envvar_list_splitter = None35 36 def __call__(self, value, param=None, ctx=None):382 unmodified linesmodified:docs/options.rst+4 added-4 removed
425 unmodified lines426 427 Multiple Values from Environment Values428 ---------------------------------------429 430-As options can accept multiple values pulling in such values from430+As options can accept multiple values, pulling in such values from431 environment variables (which are strings) is a bit more complex. The way432 click solves this is by leaving it up to the type to customize this433-behavior. For both ``multiple`` and ``nargs`` with other values than434-``1`` click will invoke the :meth:`ParamType.split_envvar_value` method to433+behavior. For both ``multiple`` and ``nargs`` with values other than434+``1``, click will invoke the :meth:`ParamType.split_envvar_value` method to435 perform the splitting.436 437 The default implementation for all types is to split on whitespace. The438-exception to this rules are the :class:`File` and :class:`Path` types438+exceptions to this rule are the :class:`File` and :class:`Path` types439 which both split according to the operating system's path splitting rules.440 On UNIX systems like Linux and OS X the splitting happens for those on441 every colon (``:``) and for Windows on a semicolon (``;``).442 85 unmodified linesmodified:docs/utils.rst+4 added-4 removed
32 unmodified lines33 34 Printing Filenames35 ------------------36 37-Because filenames might not be unicode formatting them can be a bit38-tricky. Generally this is easier on Python 2 than 3 as you can just write39-the bytes to stdout with the print function, but at least on Python 3 you40-will need to always operate in unicode.37+Because filenames might not be unicode, formatting them can be a bit38+tricky. Generally this is easier on Python 2 than on 3 as you can just39+write the bytes to stdout with the print function, but at least on Python40+3 you will need to always operate in unicode.41 42 The way this works with click is through the :func:`format_filename`43 function. It does a best effort conversion of the filename to Unicode and44 will never fail. This makes it possible to use these filenames in the30 unmodified lines