New submission from Brad Warren <bradmwar...@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@python
components: Documentation
messages: 383089
nosy: bmw, docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to