Rich-argparse

Latest version: v1.7.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.6.0

Features
- [PR-43](https://github.com/hamdanal/rich-argparse/pull/43)
Support type checking for users. Bundle type information in the wheel and sdist.

Fixes
- [PR-43](https://github.com/hamdanal/rich-argparse/pull/43)
Fix annotations of class variables previously typed as instance variables.

0.5.0

Features
- [PR-38](https://github.com/hamdanal/rich-argparse/pull/38)
Support console markup in **custom** `usage` messages. Note that this feature is not activated by
default. To enable it, set `RichHelpFormatter.usage_markup = True`.


Fixes
- [PR-35](https://github.com/hamdanal/rich-argparse/pull/35)
Use `soft_wrap` in `console.print` instead of a large fixed console width for wrapping
- [GH-36](https://github.com/hamdanal/rich-argparse/issues/36),
[PR-37](https://github.com/hamdanal/rich-argparse/pull/37)
Fix a regression in highlight regexes that caused the formatter to crash when using the same
style multiple times.

0.4.0

Features
- [PR-31](https://github.com/hamdanal/rich-argparse/pull/31)
Add support for all help formatters of argparse. Now there are 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

Note that this changes the default behavior of `RichHelpFormatter` to no longer respect line
breaks in the description and help text. It now behaves similarly to the original
`HelpFormatter`. You have now to use the appropriate subclass for this to happen.

0.3.1

Fixes
- [GH-28](https://github.com/hamdanal/rich-argparse/issues/28),
[PR-30](https://github.com/hamdanal/rich-argparse/pull/30)
Fix required options not coloured in the usage

0.3.0

Features
- [GH-16](https://github.com/hamdanal/rich-argparse/issues/16),
[PR-17](https://github.com/hamdanal/rich-argparse/pull/17)
A new custom usage lexer that is consistent with the formatter styles

Fixes
- [GH-16](https://github.com/hamdanal/rich-argparse/issues/16),
[PR-17](https://github.com/hamdanal/rich-argparse/pull/17)
Fix inconsistent coloring of args in the top usage panel
- [GH-12](https://github.com/hamdanal/rich-argparse/issues/12),
[PR-20](https://github.com/hamdanal/rich-argparse/pull/20)
Fix incorrect line breaks that put metavars on a alone on a new line
- [GH-19](https://github.com/hamdanal/rich-argparse/issues/19),
[PR-21](https://github.com/hamdanal/rich-argparse/pull/21)
Do not print help output, return it instead

Changes
- [PR-17](https://github.com/hamdanal/rich-argparse/pull/17)
The default styles have been changed to be more in line with the new usage coloring
- [PR-20](https://github.com/hamdanal/rich-argparse/pull/20)
The default `max_help_position` is now set to 24 (the default used in argparse) as line breaks
are no longer an issue


Removed
- [PR-20](https://github.com/hamdanal/rich-argparse/pull/20)
The `RichHelpFormatter.renderables` property has been removed, it was never documented

Tests
- [PR-22](https://github.com/hamdanal/rich-argparse/pull/22)
Run windows tests in CI

0.2.1

Fixes
- [GH-13](https://github.com/hamdanal/rich-argparse/issues/13),
[PR-14](https://github.com/hamdanal/rich-argparse/pull/14)
Fix compatibility with `argparse.ArgumentDefaultsHelpFormatter`

Page 3 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.