mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672)
Co-authored-by: Micky Yun Chan <michan@redhat.com>
This commit is contained in:
parent
d84d2c4985
commit
1512bc21d6
3 changed files with 16 additions and 8 deletions
|
|
@ -876,7 +876,7 @@ class BooleanOptionalAction(Action):
|
|||
_option_strings.append(option_string)
|
||||
|
||||
if help is not None and default is not None:
|
||||
help += f" (default: {default})"
|
||||
help += " (default: %(default)s)"
|
||||
|
||||
super().__init__(
|
||||
option_strings=_option_strings,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue