Zsolt Cserna <cserna.zs...@gmail.com> added the comment:

You would need to use the RawTextHelpFormatter as format_class for the 
constructor. In this case, argparse will apply no re-wrapping of the 
description.

import argparse

parser = argparse.ArgumentParser(description="""foo
bar
baz""", formatter_class=argparse.RawTextHelpFormatter)

----------
nosy: +csernazs

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to