[issue40420] argparse choices formatter

2020-05-05 Thread paul j3
paul j3 added the comment: Related topic re. long usage with choices : https://bugs.python.org/issue16418 -- ___ Python tracker ___

[issue40420] argparse choices formatter

2020-04-28 Thread paul j3
paul j3 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

[issue40420] argparse choices formatter

2020-04-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40420] argparse choices formatter

2020-04-28 Thread Leonid Ilyevsky
New submission from Leonid Ilyevsky : In my script I have a positional argument with list of choices, and that list is pretty long. The help formatter shows it as one long line, list in curly brackets, comma-separated. This is very difficult to look at and find the choice I need. It would