Tomáš Jeziorský <[email protected]> added the comment:
I found what appears to be a very similar issue so instead of creating a new
issue I will place it here as a comment.
The following code:
==
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('letter', choices=['a', 'b', 'c'],
default=argparse.SUPPRESS, nargs='?')
args = parser.parse_args([])
==
results in this error:
==
usage: pok.py [-h] [{a,b,c}]
pok.py: error: argument letter: invalid choice: '==SUPPRESS==' (choose from
'a', 'b', 'c')
==
----------
nosy: +jeyekomon
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36078>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com