Merge pull request #517 from Nudies/master
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Docstring additions and typo fixes
authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 7047fcf, c8e2110 · Browse files · 3 files·+8 added−7 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+8 added−7 removed
- other:+8 added−7 removed
Provenance
- Commit
0d48b2f- Tree
2576412- Author
Markus Unterwaditzer <markus@unterwaditzer.net>- Committer
Markus Unterwaditzer <markus@unterwaditzer.net>- Parent 1
7047fcf- Parent 2
c8e2110
3 files changed+8 added−7 removed
modified:click/_unicodefun.py+1 added-1 removed
92 unmodified lines93 )94 else:95 extra += (96 'This system lists a couple of UTF-8 supporting locales that\n'97- 'you can pick from. The following suitable locales where\n'97+ 'you can pick from. The following suitable locales were\n'98 'discovered: %s'99 ) % ', '.join(sorted(good_locales))100 101 bad_locale = None18 unmodified linesmodified:click/core.py+5 added-5 removed
652 unmodified lines653 the program name is constructed by taking the file654 name from ``sys.argv[0]``.655 :param complete_var: the environment variable that controls the656 bash completion support. The default is657- ``"_<prog_name>_COMPLETE"`` with prog name in657+ ``"_<prog_name>_COMPLETE"`` with prog_name in658 uppercase.659 :param standalone_mode: the default behavior is to invoke the script660 in standalone mode. Click will then661 handle exceptions and convert them into6 unmodified lines668 :param extra: extra keyword arguments are forwarded to the context669 constructor. See :class:`Context` for more information.670 """671 # If we are in Python 3, we will verify that the environment is672- # sane at this point of reject further execution to avoid a672+ # sane at this point or reject further execution to avoid a673 # broken script.674 if not PY2:675 _verify_python3_env()676 else:746 unmodified lines1423 All other parameters are passed onwards to the parameter constructor.1424 1425 :param show_default: controls if the default value should be shown on the1426 help page. Normally, defaults are not shown.1427- :param prompt: if set to `True` or a non empty string then the user will1428- be prompted for input if not set. If set to `True` the1429- prompt will be the option name capitalized.1427+ :param prompt: if set to `True` or a non empty string then the user will be1428+ prompted for input. If set to `True` the prompt will be the1429+ option name capitalized.1430 :param confirmation_prompt: if set then the value will need to be confirmed1431 if it was prompted for.1432 :param hide_input: if this is `True` then the input on the prompt will be1433 hidden from the user. This is useful for password314 unmodified linesmodified:click/utils.py+2 added-1 removed
41 unmodified lines42 return text_type(value)43 44 45 def make_default_short_help(help, max_length=45):46+ """Return a condensed version of help string."""47 words = help.split()48 total_length = 049 result = []50 done = False120 unmodified lines171 matter how badly configured the system is.172 173 Primarily it means that you can print binary data as well as Unicode174 data on both 2.x and 3.x to the given file in the most appropriate way174- possible. This is a very carefree function as in that it will try its175+ possible. This is a very carefree function in that it will try its176 best to not fail. As of Click 6.0 this includes support for unicode177 output on the Windows console.178 179 In addition to that, if `colorama`_ is installed, the echo function will237 unmodified lines