Rich-argparse

Latest version: v1.6.0

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

Scan your dependencies

Page 1 of 4

1.6.0

Fixes
- [GH-133](https://github.com/hamdanal/rich-argparse/issues/133),
[PR-135](https://github.com/hamdanal/rich-argparse/pull/135)
Fix help preview generation with newer releases of rich.
- [GH-130](https://github.com/hamdanal/rich-argparse/issues/130),
[PR-131](https://github.com/hamdanal/rich-argparse/pull/131)
Fix a bug that caused long group titles to wrap.
- [GH-125](https://github.com/hamdanal/rich-argparse/issues/125),
[GH-127](https://github.com/hamdanal/rich-argparse/pull/127),
[PR-128](https://github.com/hamdanal/rich-argparse/pull/128)
Redesign metavar styling to fix broken colors of usage when some metavars are wrapped to multiple
lines. The brackets and spaces of metavars are no longer colored.

1.5.2

Fixes
- [PR-124](https://github.com/hamdanal/rich-argparse/pull/124)
Fix a regression in `%(default)s` style that was introduced in 123.

1.5.1

Fixes
- [GH-121](https://github.com/hamdanal/rich-argparse/issues/121),
[PR-123](https://github.com/hamdanal/rich-argparse/pull/123)
Fix `%(default)s` style when help markup is deactivated.

1.5.0

Features
- [PR-103](https://github.com/hamdanal/rich-argparse/pull/103)
Python 3.13 is now officially supported
- [GH-95](https://github.com/hamdanal/rich-argparse/issues/95),
[PR-103](https://github.com/hamdanal/rich-argparse/pull/103)
Python 3.7 is no longer supported (EOL since 27/6/2023)
- [GH-120](https://github.com/hamdanal/rich-argparse/issues/120),
[GH-121](https://github.com/hamdanal/rich-argparse/issues/121),
[PR-122](https://github.com/hamdanal/rich-argparse/pull/122)
Add options `help_markup` and `text_markup` to disable console markup in the help text and the
description text respectively.

Fixes
- [GH-115](https://github.com/hamdanal/rich-argparse/issues/115),
[PR-116](https://github.com/hamdanal/rich-argparse/pull/116)
Do not print group names suppressed with `argparse.SUPPRESS`

1.4.0

Features
- [PR-90](https://github.com/hamdanal/rich-argparse/pull/90)
Make `RichHelpFormatter` itself a rich renderable with rich console.
- [GH-91](https://github.com/hamdanal/rich-argparse/issues/91),
[PR-92](https://github.com/hamdanal/rich-argparse/pull/92)
Allow passing custom console to `RichHelpFormatter`.
- [GH-91](https://github.com/hamdanal/rich-argparse/issues/91),
[PR-93](https://github.com/hamdanal/rich-argparse/pull/93)
Add `HelpPreviewAction` to generate a preview of the help output in SVG, HTML, or TXT formats.
- [PR-97](https://github.com/hamdanal/rich-argparse/pull/97)
Avoid importing `typing` to improve startup time by about 35%.
- [GH-84](https://github.com/hamdanal/rich-argparse/issues/84),
[PR-98](https://github.com/hamdanal/rich-argparse/pull/98)
Add a style for default values when using `%(default)s` in the help text.
- [PR-99](https://github.com/hamdanal/rich-argparse/pull/99)
Allow arbitrary renderables in the descriptions and epilog.

Fixes
- [GH-100](https://github.com/hamdanal/rich-argparse/issues/100),
[PR-101](https://github.com/hamdanal/rich-argparse/pull/101)
Fix color of brackets surrounding positional arguments in the usage.

1.3.0

Features
- [PR-87](https://github.com/hamdanal/rich-argparse/pull/87)
Add `optparse.GENERATE_USAGE` to auto generate a usage similar to argparse.
- [PR-87](https://github.com/hamdanal/rich-argparse/pull/87)
Add `rich_format_*` methods to optparse formatters. These return a `rich.text.Text` object.

Fixes
- [GH-79](https://github.com/hamdanal/rich-argparse/issues/79),
[PR-80](https://github.com/hamdanal/rich-argparse/pull/80),
[PR-85](https://github.com/hamdanal/rich-argparse/pull/85)
Fix ansi escape codes on legacy Windows console

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.