From a5225972b4377d2c6da0279aeaef9239cbbe0cd3 Mon Sep 17 00:00:00 2001 From: Ali Hamdan Date: Sat, 15 Oct 2022 17:35:48 +0200 Subject: [PATCH] v0.4.0 --- CHANGELOG.md | 17 +++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7481f9a..157a82e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ ## Unreleased +## 0.4.0 - 2022-10-15 + +### Features +- 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 behaviour 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. + * PR #31 + ## 0.3.1 - 2022-10-08 ### Fixes diff --git a/pyproject.toml b/pyproject.toml index 99c5840..4021515 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" [project] name = "rich_argparse" -version = "0.3.1" +version = "0.4.0" description = "A rich help formatter for argparse" authors = [ {name="Ali Hamdan", email="ali.hamdan.dev@gmail.com"},