관리-도구
편집 파일: cloudlinux_top_argparse.cpython-311.pyc
� �Cg� � �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.10-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'