Michael Kruse added the comment:
I think the allow_abbrev option should be orthogonal on how short options are
parsed. I am using parse_known_args() to forward the unrecognized args to
another program, therefore allow_abbrev=False is essential.
There is a special handling for short options in
New submission from Michael Kruse:
#! /usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(allow_abbrev=True)
parser.add_argument('-v', '--verbose', action='count')
print(parser.parse_args(['-vv']))
parser = argparse.ArgumentParser(all