Rémi Lapeyre <remi.lape...@henki.fr> added the comment: I made a first proposal for this feature in PR 11478, I had to adapt argparse.Action to customize how the action is represented in the usage string by adding a format_usage() method that would default to the current behavior if not overridden.
Other methods to do this may be better but I did not find them. ---------- versions: +Python 3.7, Python 3.8 -Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue8538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com