Skip to content

Version 1.7.0

Latest
Compare
Choose a tag to compare
@hamdanal hamdanal released this 08 Feb 19:13

This is the last release to support Python 3.8

Introducing auto-rich-argparse πŸš€

Improve the help output of your favorite argparse command line tool by simply installing auto-rich-argparse in its environment. Try it out with your favorite tool using:

uvx --with auto-rich-argparse <YOUR_FAVORITE_TOOL> --help

Read more at https://github.com/hamdanal/auto-rich-argparse.

Incoming Change in Version 2.0

In rich-argparse 2.0, rich markup will become opt in instead of opt out. This means usages like this:

parser.add_argument("--foo", help="[red]This text is in red[/]")

Will need to set the option RichHelpFormatter.help_markup = True to work as expected. Please see #151 for context and to give feedback.

What's Changed

This release adds new features and fixes a few bugs.

Features

Fixes

  • Fix ValueError when using %(default)s inside square brackets and help_markup is enabled. Contributed in #153 and #154
  • Do not highlight --options inside backticks. Contributed in #142

Other Changes

New Contributors

  • @mr-c made their first contribution in #139

Full Changelog: v1.6.0...v1.7.0