summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2021-12-08 17:09:27 +0000
committerDavid Lord <davidism@gmail.com>2022-02-20 12:04:07 -0800
commit39ee8b0580ee48c43801feaa0c9a5b454a3e0e19 (patch)
tree9e84c8330d8d2e2230d3bfeffd3592937ba7cd31 /CHANGES.rst
parent4262661a0fffabe3803f1bd876b19244f587dafa (diff)
downloadclick-39ee8b0580ee48c43801feaa0c9a5b454a3e0e19.tar.gz
Store raw help string for commands
Some tools, such as sphinx-click [1], may wish to access the full help string for a command including any text after the form feed character (which indicates truncation [2]). Make this possible by storing the help string without truncation and instead truncate when we use this string (i.e. truncate on load, not on store). [1] https://github.com/click-contrib/sphinx-click/issues/56 [2] https://click.palletsprojects.com/en/latest/documentation/#truncating-help-texts Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 35307d4..ebf14e6 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -33,6 +33,8 @@ Version 8.1.0
processed. :issue:`1985`
- A flag option with ``required=True`` requires that the flag is
passed instead of choosing the implicit default value. :issue:`1978`
+- Store untruncated help string in ``Command.help``, and perform
+ truncation when formatting. :issue:`2149`
Version 8.0.4