mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Fixes logging edge case in help text defaults
This commit is contained in:
parent
ec7e7c8a27
commit
d6998224cb
1 changed files with 3 additions and 1 deletions
|
|
@ -204,7 +204,9 @@ class Option:
|
|||
help = help.replace(_optparse_default, _argparse_default)
|
||||
|
||||
# ensure help text doesn't get clobbered by later updates to defaults
|
||||
help = self._bind_defaults_to_help_text(help, default)
|
||||
help = self._bind_defaults_to_help_text(
|
||||
help, default, long_option_name
|
||||
)
|
||||
|
||||
# optparse -> argparse for `callback`
|
||||
if action == "callback":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue