OwlCyberSecurity - MANAGER
Edit File: arg_parse.cpython-311.opt-1.pyc
� �����h������������������������<�����d�dl�m�Z��d�dl�mZ�d�dlmZmZmZmZ�d��ZdS�)�����)�docopt)� DocoptExit)�Schema�SchemaError�Or�Usec����������������������d}d|��d|��d|��d|��d|��d|��d|��d |��d |��d�} �t����������||�������������}n#�t����������$�r �d}d |fcY�S�w�xY�wt����������t����������t����������t����������t����������t����������t����������t����������t����������t����������t����������t����������t ����������t����������t����������������������d������������t����������d� ������������} �|���������������������|������������}d}n(#�t����������$�r}t����������|������������}d }Y�d}~nd}~ww�xY�w||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-remotezrpm-packages�status�enable�disablez enable-rpmzdisable-rpmz--jsonz--sendz--force-collectz--helpz--lve-idz--asyncT) r���r���r����boolr���r����int�validater����str)�argv� prog_name� docstring�args�s_error_string�sr ����es��� �py/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;�;D�N)r���r����schemar���r���r���r���r����������r����<module>r������sh������������������������������/��/��/��/��/��/��/��/��/��/��/��/�8��8��8��8��8r���