What's the problem this feature will solve?
The help parameter to parser.addoption() allows interpolating other parameters in the help string, e.g.
parser.addoption("--foo", help="Foo, defaults to %(default)s", default="asdf")
It would be great if parser.addini() supported the same, e.g.
parser.addini("foo", help="Foo, defaults to %(default)s", default="asdf")
Alternative Solutions
One can manually interpolate, or just duplicate it
default = "asdf"
parser.addini("foo", help=f"Foo, defaults to {default}", default=default)
parser.addini("foo", help="Foo, defaults to asdf", default="asdf")
Additional context
https://docs.python.org/3/library/argparse.html#help
What's the problem this feature will solve?
The
helpparameter toparser.addoption()allows interpolating other parameters in the help string, e.g.It would be great if
parser.addini()supported the same, e.g.Alternative Solutions
One can manually interpolate, or just duplicate it
Additional context
https://docs.python.org/3/library/argparse.html#help