Closed catetrai closed 2 years ago
This PR adds support for multiline description passed to ArgumentParser.
ArgumentParser
By default, argparse wraps the description text (i.e. replaces newlines with spaces).
To preserve newlines, I added the formatter_class option to ArgumentParser. See docs: https://docs.python.org/3/library/argparse.html?highlight=rawtexthelpformatter#argparse.RawDescriptionHelpFormatter
formatter_class
Thank you for this cool utility!
Thanks a lot for the contribution!
This PR adds support for multiline description passed to
ArgumentParser
.By default, argparse wraps the description text (i.e. replaces newlines with spaces).
To preserve newlines, I added the
formatter_class
option toArgumentParser
. See docs: https://docs.python.org/3/library/argparse.html?highlight=rawtexthelpformatter#argparse.RawDescriptionHelpFormatterThank you for this cool utility!