New submission from chr0139 <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue37227>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com