use %(default) in argparse help text

This commit is contained in:
Rupus Reinefjord 2024-01-17 12:48:11 +01:00
parent d0209dbdea
commit 86993f0b15

View file

@ -173,7 +173,7 @@ def parse_args(args=None):
metavar='executable', metavar='executable',
type=str, type=str,
default="gpg", default="gpg",
help="path to the gpg binary you wish to use (default 'gpg')", help="path to the gpg binary you wish to use (default: '%(default)s')",
dest='gpgbinary' dest='gpgbinary'
) )
@ -192,7 +192,7 @@ def parse_args(args=None):
default="utf-8", default="utf-8",
help=( help=(
"comma-separated text encodings to try, in order, when decoding" "comma-separated text encodings to try, in order, when decoding"
" gpg output (default 'utf-8')" " gpg output (default: '%(default)s')"
), ),
dest='encodings' dest='encodings'
) )