Fix the type= warning to contain the option name

This commit is contained in:
Anthony Sottile 2020-01-16 12:54:52 -08:00
parent b56c88fe65
commit f4822d8783

View file

@ -205,7 +205,8 @@ class Option(object):
LOG.warning(
"option %s: please update from optparse string `type=` to "
"argparse callable `type=` -- this will be an error in the "
"future"
"future",
long_option_name,
)
type = _optparse_callable_map[type]