Skip to content
Myr

Add details to `prompt` and `confirm` docstrings regarding 8.3.1 change

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

This adds details of the change in #3021

authored by Gene Wood · committed by Gene Wood · parent 1bfdb91 · Browse files · 1 file+14 added−0 removed
This commit

State

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

Diff stats

1 file+14 added−0 removed

  • other:+14 added−0 removed

1 file+14 added−0 removed

modified:src/click/termui.py+14 added
117 unmodified lines
118 For example if type is a Choice of either day or week,119 show_choices is true and text is "Group by" then the120 prompt will be "Group by (day, week): ".121122 .. versionchanged:: 8.3.1123 The prompt displayed no longer strips trailing whitespace, adding a single124 trailing space. Instead, ``text`` is now displayed followed by125 ``prompt_suffix`` with no whitespace manipulation.126 When ``err`` is True the prompt is sent to ``stderr`` except for the last127 character which is sent to ``stdout``.128129 .. versionadded:: 8.0130 ``confirmation_prompt`` can be a custom string.131132 .. versionadded:: 7.0
87 unmodified lines
220 :param show_default: shows or hides the default value in the prompt.221 :param err: if set to true the file defaults to ``stderr`` instead of222 ``stdout``, the same as with echo.223224 .. versionchanged:: 8.3.1225 The prompt displayed no longer strips trailing whitespace, adding a single226 trailing space. Instead, ``text`` is now displayed followed by227 ``prompt_suffix`` with no whitespace manipulation.228 When ``err`` is True the prompt is sent to ``stderr`` except for the last229 character which is sent to ``stdout``.230231 .. versionchanged:: 8.0232 Repeat until input is given if ``default`` is ``None``.233234 .. versionadded:: 4.0
657 unmodified lines