diff options
author | Maximilian Hils <git@maximilianhils.com> | 2021-08-16 21:42:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 21:42:21 (GMT) |
commit | 1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f (patch) | |
tree | f05667cbf2a17004fcc20f01d48332558460c16a /Lib/argparse.py | |
parent | d84d2c4985457733602d46dc4ee77290da4e9539 (diff) | |
download | cpython-1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f.zip cpython-1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f.tar.gz cpython-1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f.tar.bz2 |
bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672)
Co-authored-by: Micky Yun Chan <michan@redhat.com>
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index 33c5d70..d5a0afb 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -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, |