{"repo":"hamdanal/rich-argparse","free":true,"listed":false,"github":"https://github.com/hamdanal/rich-argparse","clone":"git clone https://github.com/hamdanal/rich-argparse.git","description":"A rich help formatter for argparse","language":"Python","stars":207,"topics":["argparse","python","rich","cli","rich-argparse","syntax-highlighting","click","typer","optparse"],"license":"MIT","category":"cli-tools","readme_excerpt":"rich-argparse Format argparse and optparse help using rich. rich-argparse improves the look and readability of argparse's help while requiring minimal changes to the code. Table of contents Installation Usage Output styles Customizing colors Group name formatting Special text highlighting Customizing usage Console markup Colors in --version Rich renderables Working with subparsers Documenting your CLI Additional formatters Django support Optparse support (experimental) Legacy Windows Installation Install from PyPI with pip or your favorite tool. Usage Simply pass formatter class to the argument parser rich-argparse defines equivalents to all argparse's standard formatters: rich argparse formatter equivalent in argparse ------------------------------------- --------------------------------- RichHelpFormatter HelpFormatter RawDescriptionRichHelpFormatter RawDescriptionHelpFormatter RawTextRichHelpFormatter RawTextHelpFormatter ArgumentDefaultsRichHelpFormatter ArgumentDefaultsHelpFormatter MetavarTypeRichHelpFormatter MetavarTypeHelpFormatter Additional formatters are available in the rich argparse.contrib module. Output styles The default styles used by rich-argparse are carefully chosen to work in different light and dark themes. Customize the colors You can customize the colors of the output by modifying the styles dictionary on the formatter class. You can use any rich style as defined here. rich-argparse defines and uses the following styles: For example, to make the descr","default_branch":null,"files":null,"tree":[],"storefront":"/r/hamdanal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hamdanal/rich-argparse/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}