File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
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
+
5
22
## 0.3.1 - 2022-10-08
6
23
7
24
### Fixes
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
5
5
[project ]
6
6
name = " rich_argparse"
7
- version = " 0.3.1 "
7
+ version = " 0.4.0 "
8
8
description = " A rich help formatter for argparse"
9
9
authors = [
10
10
{
name =
" Ali Hamdan" ,
email =
" [email protected] " },
You can’t perform that action at this time.
0 commit comments