[issue44986] Date formats in help messages of argparse

2021-08-26 Thread Matías Senger
Matías Senger added the comment: With this change there should be no need to escape anything, and it is still compatible with the old formatting. Plus, with the current implementation if you forget to escape something like %Y the error message is not helpful at all and only happens when

[issue44986] Date formats in help messages of argparse

2021-08-23 Thread Matías Senger
New submission from Matías Senger : If the help message of an argument in argparse contains a date format, e.g. %Y-%m-%d, it crashes when printing the help after being invoked with the -h option. Uploaded an example. -- components: Library (Lib) files: deleteme.py messages: 400183