You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
argparse: fix inconsistency in add_argument() API when using positional argument with dest= parameter #117834
Current behaviour is ugly and inconsistent between options and positional arguments:
parser.add_argument("--option-foo", dest="my_foo_option_var")
parser.add_argument(metavar="BAR_ARG", dest="my_bar_arg_var")
# or even worseparser.add_argument("my_bar_arg_var", metavar="BAR_ARG")
Activity