paul j3 <ajipa...@gmail.com> added the comment:
The display of the choices has been discussed in previous issues. When the choices is long there isn't a clean way of handling the display. I'd suggest using a 'metavar' to show a short value, and then enumerate the choices in the help text. Use the 'Raw' help formatter to handle newlines as desired. Choices get displayed in 3 places - the usage, the help, and error messages. Metavar replaces 2 of those. An alternative to choices is a custom 'type' function. An example would be all integers between 0 and 100. Choices would work, but make a poor display regardless of formatting. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40420> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com