[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

2020-07-13 Thread Eric V. Smith
Eric V. Smith added the comment: It's using normal %-formatting, so the rules applied are in https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting The last line of the last table in that section mentions literal % characters. I realize it's sort of hard to dig this u

[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

2020-07-12 Thread Neil Godber
Neil Godber added the comment: Hi, yes I did just then and indeed this worked. Wasn't aware of this. Further, curiously I am no longer able recreate this issue so I will close this for now. Sorry for the bother. -- stage: -> resolved status: open -> closed _

[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

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

[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

2020-07-12 Thread Eric V. Smith
Eric V. Smith added the comment: Did you try doubling the % char? help='%%-age of the value' -- nosy: +eric.smith ___ Python tracker ___

[issue41289] '%' character in help= for argparse causes ValueError: incomplete format

2020-07-12 Thread Neil Godber
New submission from Neil Godber : '%' character in help= for argparse causes ValueError: incomplete format. I am attempting to use the percentage character in my help string but get the above error. Presumably argparse assumes % denotes formatting when this is not the case. I have tried f-str