o
    PDib                     @  sH  d dl mZ edkrd dlZd dlZd dlmZ d dlmZm	Z	 ej
de	ddd	Zejd
dd ejddd ejdddd ejde	jd dd ejddddd ejdddZejddd d! e Zejd"d#d$d% ejd&d'd(d)d* ejd+d'd(ejd* ejd,ed-d.eid/ ed0d1 ejD re  dS e  dS dS )2    )annotations__main__N)DIMMED_MONOKAI)HelpPreviewActionRichHelpFormatterzpython -m rich_argparsea  This is a [link https://pypi.org/project/rich]rich[/]-based formatter for [link https://docs.python.org/3/library/argparse.html#formatter-class]argparse's help output[/].

It enables you to use the powers of rich like markup and highlights in your CLI help. zD:link: Read more at https://github.com/hamdanal/rich-argparse#usage.)progformatter_classdescriptionepilogzformatter-classzhSimply pass `formatter_class=RichHelpFormatter` to the argument parser to get a colorful help like this.)helpstyleszICustomize your CLI's help with the `RichHelpFormatter.styles` dictionary.z--highlightsREGEXESzHighlighting the help text is managed by the list of regular expressions `RichHelpFormatter.highlights`. Set to empty list to turn off highlighting.
See the next two options for default values.)metavarr   z--syntaxzargparse.syntaxz]Text inside backticks is highlighted using the `argparse.syntax` style (default: %(default)r))defaultr   z-oz--optionMETAVARzPText that looks like an --option is highlighted using the `argparse.args` style.zmore argumentszThis is a custom group. Group names are [italic]*Title Cased*[/] by default. Use the `RichHelpFormatter.group_name_formatter` function to change their format.)r	   z--more*zUThis formatter works with subparsers, mutually exclusive groups and hidden arguments.)nargsr   z--rich
store_truezERich and poor are mutually exclusive. Choose either one but not both.)actionr   z--poorstore_falserichu   Does poor mean --not-rich 😉?)r   destr   z
--not-richz --generate-rich-argparse-previewzrich-argparse.svgtheme)r   pathexport_kwdsc                 c  s    | ]}| d V  qdS )z
--generateN)
startswith).0arg r   O/var/www/Datamplify/venv/lib/python3.10/site-packages/rich_argparse/__main__.py	<genexpr>X   s    r    )
__future__r   __name__argparsesysrich.terminal_themer   rich_argparser   r   ArgumentParserparseradd_argumentr   add_argument_groupgroupadd_mutually_exclusive_groupmutexSUPPRESSanyargv
parse_args
print_helpr   r   r   r   <module>   s   	