Repository navigation
This is the Click 8.5.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/click/8.5.1/
Changes: https://click.palletsprojects.com/page/changes/#version-8-5-1
Milestone: https://github.com/pallets/click/milestone/66
- Fix
copy.deepcopy()andpickleon aParameter,OptionorCommand. #3805 - A
KeyboardInterruptarriving whileCommand.main()reports an abort or an error,
or while it exits, no longer escapes as an unhandled traceback. The command still
exits with the intended code; only the message may be lost. #3802 - Add
Option.get_help_spec(), which returns the option's left help
column even when the option is hidden.Option.get_help_record()still
returnsNonefor hidden options, so help screens are unchanged. #3821 - The
Positional argumentshelp section lists every argument of the command,
not only the documented ones. An argument with nohelpgets an empty
description, the same way an option with nohelpdoes. #3860 Argument.get_help_record()always returns a tuple. It used to return
Nonefor an argument with nohelp. #3860- Document which types are inferred from
default, and what an unrecognized
typecallable does to a command-line value. #3036 #3808 path_typenarrows the converted value's type forconvertandprompt.
#3822 #3858Parameteraccepts a newhelpargument, andOptionandArgument
inherit it.Parameter.to_info_dict()now reportshelpfor every kind of parameter.
#3861- A command's short help no longer stops at an abbreviation such as
vs.ore.g.
inside the first sentence. A period ends the sentence only when it closes the text
or the next word does not start in lowercase. #3865 - With
show_envvar=True, an option's error message now prints all variables of an
envvarsequence instead of thereprof the sequence. #3884 - An empty
envvar, such as[]or"", shows the same help and error message as
noenvvarwhenshow_envvar=True. The help screen used to show[env var: ].
#3884 - Align command's deprecated help text to options and arguments: do not translate the
command's own help text, only the(DEPRECATED)label. #3901