Yauhen added the comment:
I am adding one more testcase in order to clarify more the problem:
import argparse
import sys
parser = argparse.ArgumentParser(prog=sys.argv[0], add_help=False)
parser.add_argument('-a', action='store_true')
parser.add_argument(
Yauhen added the comment:
It was a mistake in expected result, should be:
$ python arparse_test.py -ab -c
Namespace(a=True)
['-b', '-c']
--
___
Python tracker
<https://bug
New submission from Yauhen :
steps to reproduce:
import argparse
import sys
parser = argparse.ArgumentParser(prog=sys.argv[0], add_help=False)
parser.add_argument('-a', action='store_true')
parsed_args, unknown_args = parser.parse_known_args(sys