Your IP : 3.140.244.225


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clsummary/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clsummary/__pycache__/arg_parse.cpython-311.pyc

�

T�g���<�ddlmZddlmZddlmZmZmZmZd�ZdS)�)�docopt)�
DocoptExit)�Schema�SchemaError�Or�Usec��d}d|�d|�d|�d|�d|�d|�d|�d	|�d
|�d�}	t||��}n#t$r	d}d
|fcYSwxYwttttttttttttt	tt��d��td�
��}	|�|��}d}n(#t$r}t|��}d
}Yd}~nd}~wwxYw||fS)z
    Parse arguments for cloudlinux-summary command
    :param argv: sys.argv
    :return cortege: (error_flag, s_message)
    zcloudlinux-summaryz6Utility to get Cloudlinux usage statistics

Usage:
   zC [--json] [--send] [--force-collect] [--lve-id <int>] [--async]
   z status [--json]
   zF rpm-packages [--json] [--lve-id <int>] [--send] [--force-collect]
   z) get-remote [--json] [--lve-id <int>]
   z% enable [--json] [--lve-id <int>]
   z& disable [--json] [--lve-id <int>]
   z enable-rpm [--json]
   z disable-rpm [--json]
   a (-h | --help)

Options:
    --json                              Return data in JSON format.
    --send                              Send summary to the CloudLinux server
    --force-collect                     Ignore global settings.json when collecting statistics
    --lve-id <int>                      LVE for summary script. For internal use only.
    --async                             Start background process collecting statistics, return immediately
    -h, --help                          Show this help message and exit
zERROR: Invalid parameter passedFN)
z
get-remotezrpm-packages�status�enable�disablez
enable-rpmzdisable-rpmz--jsonz--sendz--force-collectz--helpz--lve-idz--asyncT)
rrr�boolrr�int�validater�str)�argv�	prog_name�	docstring�args�s_error_string�sr
�es        �J/opt/cloudlinux/venv/lib64/python3.11/site-packages/clsummary/arg_parse.py�parse_cloudlinux_summary_optsr
s���%�I������	��
����
������������������I�*%��i��&�&�����%�%�%�:���n�$�$�$�$�%����	�������������s�3�x�x��&�&����	�	�A� ��z�z�$�������������1�v�v������������������4�<�s'�3�A�A�C�
D�%C;�;DN)rr�schemarrrrr��r�<module>rsh��������������/�/�/�/�/�/�/�/�/�/�/�/�8�8�8�8�8r

?>