[issue37910] argparse wrapping fails with metavar="" (no metavar)

2019-10-14 Thread Sam Franklin
Sam Franklin added the comment: Paul, very true. If I find time I may take a look at rewriting it as you suggest. For the moment, though, there's a relatively simple change that opens up a range of allowable whitespace characters. It's still a bandage, but it covers decent-size

[issue37910] argparse wrapping fails with metavar="" (no metavar)

2019-08-21 Thread Sam Franklin
Change by Sam Franklin : -- keywords: +patch pull_requests: +15084 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15372 ___ Python tracker <https://bugs.python.org/issu

[issue37910] argparse wrapping fails with metavar="" (no metavar)

2019-08-21 Thread Sam Franklin
New submission from Sam Franklin : When argparse wraps the usage text, it can fail its assertion tests with whitespace differences. This can occur when metavar="", needed if a user wishes to avoid having a metavar print. It also could occur if a user specifies any other whitespa