[New-bugs-announce] [issue42650] Can people use dest=argparse.SUPPRESS in custom Action classes?
Brad Warren
report at bugs.python.org
Tue Dec 15 13:49:25 EST 2020
New submission from Brad Warren <bradmwarren at gmail.com>:
argparse internally sets dest=SUPPRESS in action classes like _HelpAction and _VersionAction to prevent an attribute from being created for that option on the resulting namespace.
Can users creating custom Action classes also use this functionality without worrying about it suddenly breaking in a new version of Python? If so, can we document this functionality? I'd be happy to submit a PR.
----------
assignee: docs at python
components: Documentation
messages: 383089
nosy: bmw, docs at python
priority: normal
severity: normal
status: open
title: Can people use dest=argparse.SUPPRESS in custom Action classes?
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42650>
_______________________________________
More information about the New-bugs-announce
mailing list