Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
lvestats
/
lib
/
parsers
/
__pycache__
[ HOME ]
Exec
Submit
cloudlinux_top_argparse.cpython-311.pyc
� ֈ9h� � �T � d dl Z d dlZd dlmZmZ G d� de j � � Zdd�ZdS )� N)�SmartFormatter�check_from_zero_to_max_intc � � e Zd Zd� ZdS )� ArgParseClTopc � � t |� � �)N)� ValueError)�self�messages ��/builddir/build/BUILDROOT/lve-stats-4.2.13-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/parsers/cloudlinux_top_argparse.py�errorzArgParseClTop.error s � ���!�!�!� N)�__name__� __module__�__qualname__r � r r r r s# � � � � � �"� "� "� "� "r r �cloudlinux_topc �* � d� }t t d| �� � }|� ddt j dd�� � |� d d ddd �� � |� dddd�� � |� � � }|� ddt d�� � |� ddd�� � |� ddt d�� � |� ddt dd� � � |� d!d"|d#d$� � � |S )%Nc �f � | � � � }|dv r|S t j d| � d�� � �)N)�cpu� mysql_cpu�io�mysql_io�iops�ep�nproc�pmem�"z{" is an invalid; must be one of the available options: "cpu", "mysql_cpu", "io", "mysql_io", "iops", "ep", "nproc", "pmem")�lower�argparse�ArgumentTypeError)�value� value_lowereds r �check_orderz*cloudlinux_top_parser.<locals>.check_order sP � ���� � � ��a�a�a� � ��,�V�E� V� V� V�� � r zl%(prog)s - Utility provides information about current MySQL and LVE usage of a running system in JSON format)�formatter_class�description�progz-vz --versionz&show program's version number and exit�version)r'