%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/clwpos/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/clwpos/__pycache__/parse.cpython-37.pyc

B

�4Lb��@s`ddlmZddlZddlmZmZmZmZddlm	Z	Gdd�dej
ej�ZGdd�d�Z
dS)	�)�absolute_importN)�Tuple�List�Dict�Any)�is_cl_shared_pro_editioncseZdZ�fdd�Z�ZS)�CustomFormattercst�j||ddd���dS)N���)�widthZmax_help_position)�super�__init__)�self�args�kwargs)�	__class__��=/opt/alt/python37/lib/python3.7/site-packages/clwpos/parse.pyr
szCustomFormatter.__init__)�__name__�
__module__�__qualname__r
�
__classcell__rr)rrrsrc@sXeZdZdZdd�Zddd�Zdd�Zeeee	e
ee	ffd	�d
d�Zdd
�Z
dS)�ArgumentParserzHelper to create parsers.cOs4tj||�|_|jjddd�|_i|_|jj|_dS)N�commandT)�destZrequired)�argparser�_parserZadd_subparsers�
_subparser�_subparsers�add_argument)rrrrrrr
szArgumentParser.__init__Ncs���fdd�}|S)Ncs0t�s
�s,�jj|j�dd�f���j|j<|S)N�_�-)rrZ
add_parserr�replacer)�method)r�only_for_shared_prorrr�	decorators
z)ArgumentParser.command.<locals>.decoratorr)rr$rr%r)rr$rrrszArgumentParser.commandcs���fdd�}|S)Ncs�j|jj���|S)N)rrr)r#)rrrrrr%(sz*ArgumentParser.argument.<locals>.decoratorr)rrrr%r)rrrr�argument'szArgumentParser.argument)�arguments_paramscs���fdd�}|S)z�
        Create mutually exclusive group with arguments
        `argument_params` is a list of tuples with *args and **kwargs to create arguments in the group
        cs:�j|jjf��}x �D]}|j|d|d�qW|S)Nr�)rrZadd_mutually_exclusive_groupr)r#�groupr&)r'rrrrr%7s
z8ArgumentParser.mutual_exclusive_group.<locals>.decoratorr)rr'rr%r)r'rrr�mutual_exclusive_group.s	z%ArgumentParser.mutual_exclusive_groupcCs|j�|�S)N)r�
parse_args)rrrrrr+@szArgumentParser.parse_args)N)rrr�__doc__r
rr&rrrr�strr*r+rrrrrs
		&r)Z
__future__rr�typingrrrrZclcommon.lib.cleditionrZArgumentDefaultsHelpFormatterZ
HelpFormatterrrrrrr�<module>s


Zerion Mini Shell 1.0