This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author csernazs
Recipients Phillip.M.Feldman@gmail.com, csernazs
Date 2018-07-31.19:43:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533066232.3.0.56676864532.issue34299@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2018-07-31 19:43:52csernazssetrecipients: + csernazs, Phillip.M.Feldman@gmail.com
2018-07-31 19:43:52csernazssetmessageid: <1533066232.3.0.56676864532.issue34299@psf.upfronthosting.co.za>
2018-07-31 19:43:52csernazslinkissue34299 messages
2018-07-31 19:43:52csernazscreate