[issue37227] Wrong parse long argument
chr0139
report at bugs.python.org
Tue Jun 11 04:53:06 EDT 2019
New submission from chr0139 <marek.chrastina at vsb.cz>:
I have this script
import argparse
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group()
group.add_argument('-l', '--list', action='store_true', help="show help")
group.add_argument('-u', '--upgrade', action='store_true', help="show help")
parser.parse_args(['--li'])
and this is the unexpected result:
Namespace(list=True, upgrade=False)
----------
components: Library (Lib)
messages: 345203
nosy: chr0139
priority: normal
severity: normal
status: open
title: Wrong parse long argument
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37227>
_______________________________________
More information about the Python-bugs-list
mailing list