Rich-argparse

Latest version: v1.5.2

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

Scan your dependencies

Page 1 of 4

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

1.2.0

Features
- [PR-73](https://github.com/hamdanal/rich-argparse/pull/73)
Add experimental support for `optparse`. Import optparse formatters from `rich_argparse.optparse`.

Changes
- [PR-72](https://github.com/hamdanal/rich-argparse/pull/72)
The project now uses `ruff` for linting and import sorting.
- [PR-71](https://github.com/hamdanal/rich-argparse/pull/71)
`rich_argparse` is now a package instead of a module. This should not affect users.

Fixes
- [PR-74](https://github.com/hamdanal/rich-argparse/pull/74)
Fix crash when a metavar following a long option contains control codes.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.