Fixes logging edge case in help text defaults

This commit is contained in:
chrisRedwine 2022-08-14 02:59:29 -05:00
parent ec7e7c8a27
commit d6998224cb

View file

@ -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":