Skip to content
Myr

Merge pull request #112 from julen/doc-fixes

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

authored by Armin Ronacher · committed by Armin Ronacher · parents 57c6f13, ef65f30 · Browse files · 4 files+5 added−5 removed
This commit

State

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

Trailers

  • Docs: minor fixes

Diff stats

4 files+5 added−5 removed

  • other:+5 added−5 removed

4 files+5 added−5 removed

modified:docs/options.rst+1 added-1 removed
147 unmodified lines
148149 invoke(info, args=['--shout'])150151Note that if a slash is contained in your option already (for instance if152you use windows style parameters where ``/`` is the prefix character you152you use Windows-style parameters where ``/`` is the prefix character you153can alternatively split the parameters through ``;`` instead):154155.. click:example::156
452 unmodified lines
modified:docs/upgrading.rst+1 added-1 removed
15 unmodified lines
16whereas now it's ``(ctx, param, value)``. This change was necessary as it17otherwise made reusing callbacks too complicated.1819To ease the transition click will still accept old callbacks. Starting20with Click 3.0 it will start to issue a warning to stderr to encourage you20with click 3.0 it will start to issue a warning to stderr to encourage you21to upgrade.2223In case you want to support both click 1.0 and click 2.0 you can make a24simple decorator that adjusts the signatures::
20 unmodified lines
modified:docs/utils.rst+1 added-1 removed
153 unmodified lines
154155.. versionadded:: 2.0156157Sometimes it's useful to pause until the user presses any key on the158keyboard. This is especially useful on windows where ``cmd.exe`` by158keyboard. This is especially useful on Windows where ``cmd.exe`` by159default will close the window at the end of the command execution instead160of waiting.161162In click this can be accomplished by the :func:`pause` function. This
174 unmodified lines
modified:CHANGES+2 added-2 removed
34 unmodified lines
35- added :func:`getchar` to fetch a single character from the terminal.36- errors now go to stderr as intended.37- fixed various issues with more exotic parameter formats like DOS/Windows38 style arguments.39- added :func:`pause` which works similar to the windows ``pause`` cmd40 built in but becomes an automatic noop if the application is not run39- added :func:`pause` which works similar to the Windows ``pause`` cmd40 built-in but becomes an automatic noop if the application is not run41 through a terminal.4243Version 1.144-----------
12 unmodified lines