Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdanal committed Oct 15, 2022
1 parent 920304b commit a522597
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"},
Expand Down

0 comments on commit a522597

Please sign in to comment.