Rich-argparse-plus

Latest version: v0.3.1.4

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.1.3

* Themes
* PDF, PNG, HTML, etc export
* Show defaults by default

FORK

0.3.1

Fixes
- Fix required options not coloured in the usage
* Issue 28, PR 30

0.3.0

Features
- A new custom usage lexer that is consistent with the formatter styles
* Issue 16, PR 17

Fixes
- Fix inconsistent coloring of args in the top usage panel
* Issue 16, PR 17
- Fix incorrect line breaks that put metavars on a alone on a new line
* Issue 12, PR 20
- Do not print help output, return it instead
* Issue 19, PR 21

Changes
- The default styles have been changed to be more in line with the new usage coloring
* PR 17
- The default `max_help_position` is now set to 24 (the default used in argparse) as line breaks
are no longer an issue
* PR 20

Removed
- The `RichHelpFormatter.renderables` property has been removed, it was never documented
* PR 20

Tests
- Run windows tests in CI
* PR 22

0.2.1

Fixes
- Fix compatibility with `argparse.ArgumentDefaultsHelpFormatter`
* Issue 13, PR 14

0.2.0

Features
- Metavars now have their own style `argparse.metavar` which defaults to `'bold cyan'`
* Issue 4, PR 9

Fixes
- Add missing ":" after the group name similar to the default HelpFormatter
* Issue 4, PR 10
- Fix padding of long options or metavars
* PR 11
- Fix overflow of text in help that was truncated
* PR 11
- Escape parameters that get substituted with % such as %(prog)s and %(default)s
* PR 11
- Fix flaky wrapping of long lines
* PR 11

0.1.1

Fixes
- Fix `RichHelpFormatter` does not replace `%(prog)s` in text
* Issue 5, PR 6
- Fix extra newline at the end
* Issue 7, PR 8

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.