Version 0.4.0
What's Changed
Added support for all help formatters of argparse by @hamdanal in #31
There are now five formatter classes defined in rich_argparse
RichHelpFormatter: the equivalent of argparse.HelpFormatter
RawDescriptionRichHelpFormatter: the equivalent of argparse.RawDescriptionHelpFormatter
RawTextRichHelpFormatter: the equivalent of argparse.RawTextHelpFormatter
ArgumentDefaultsRichHelpFormatter: the equivalent of argparse.ArgumentDefaultsHelpFormatter
MetavarTypeRichHelpFormatter: the equivalent of argparse.MetavarTypeHelpFormatter
Warning
This changes the default behavior ofRichHelpFormatterto no longer respect line breaks in the description and help text. It now behaves similarly to the originalargparse.HelpFormatter. You have now to use the appropriate formatter subclass to control line breaks as you would do with argparse formatters.
Full Changelog: v0.3.1...v0.4.0