Skip to content

Commit a522597

Browse files
committed
v0.4.0
1 parent 920304b commit a522597

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
## Unreleased
44

5+
## 0.4.0 - 2022-10-15
6+
7+
### Features
8+
- Add support for all help formatters of argparse. Now there are five formatter classes defined in
9+
`rich_argparse`:
10+
```
11+
RichHelpFormatter: the equivalent of argparse.HelpFormatter
12+
RawDescriptionRichHelpFormatter: the equivalent of argparse.RawDescriptionHelpFormatter
13+
RawTextRichHelpFormatter: the equivalent of argparse.RawTextHelpFormatter
14+
ArgumentDefaultsRichHelpFormatter: the equivalent of argparse.ArgumentDefaultsHelpFormatter
15+
MetavarTypeRichHelpFormatter: the equivalent of argparse.MetavarTypeHelpFormatter
16+
```
17+
Note that this changes the default behaviour of `RichHelpFormatter` to no longer respect line
18+
breaks in the description and help text. It now behaves similarly to the original
19+
`HelpFormatter`. You have now to use the appropriate subclass for this to happen.
20+
* PR #31
21+
522
## 0.3.1 - 2022-10-08
623

724
### Fixes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "rich_argparse"
7-
version = "0.3.1"
7+
version = "0.4.0"
88
description = "A rich help formatter for argparse"
99
authors = [
1010
{name="Ali Hamdan", email="[email protected]"},

0 commit comments

Comments
 (0)