[New-bugs-announce] [issue41534] argparse : allow_abbrev behavior between 3.7 and 3.8
report at bugs.python.org
Wed Aug 12 14:10:13 EDT 2020
New submission from r1kk3r <gael.jobin at switzerlandmail.ch>:
I looked into changelog and the source code to see if the behavior was wanted but I was not able to see the source of the issue.
parser = argparse.ArgumentParser(allow_abbrev=True)
parser.add_argument('-o', type=str, required=True, dest="bla", help="bla")
known_args, rest_of_args = parser.parse_known_args(["-o", "test1", "-object_lto", "test2"])
Executing with python 3.7.8
Executed with python 3.8.5
Is it expected? How do I get the behavior of python 3.7 in python 3.8?
components: Library (Lib)
title: argparse : allow_abbrev behavior between 3.7 and 3.8
versions: Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce