관리-도구
편집 파일: option_parser.cpython-311.pyc
� �܋f � �N � d dl Z d dlZd dlmZ d� Z G d� de j � � ZdS )� N)�Optionc �* �� �fd�| j D � � S )Nc �h �� g | ].}t |d d� � pd�k r|j t j u�,|��/S )�levelr )�getattr�help�optparse� SUPPRESS_HELP)�.0�option�outputlevels ��l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/config/option_parser.py� <listcomp>z"_level_options.<locals>.<listcomp> sQ �� � � � ���F�G�Q�'�'�,�1��<�<��K�x�5�5�5� � 6�5�5� )�option_list)�groupr s `r �_level_optionsr s1 �� �� � � ��'�� � � r c �, � � e Zd Z� fd�Zdd�Zd� Z� xZS )�OptionParserc � �� t j dt d�� � t � � j |dt i|�� d S )NzBOptionParser has been deprecated and will be removed in pylint 3.0� )� stacklevel�option_class)�warnings�warn�DeprecationWarning�super�__init__r )�selfr �args�kwargs� __class__s �r r zOptionParser.__init__ sN �� �� �P��� � � � � �����t�>�f�>�v�>�>�>�>�>r Nc � � |�| j }t |dd� � }|� | � � |� d� � g}|� � � | j rH|� t j � | |� � � � |� d� � | j D ]a}|j |k rT|j st ||� � r=|� |� |� � � � |� d� � �b|� � � d� |d d� � � S )N�output_levelr �Options� � ���)� formatterr �store_option_strings�format_heading�indentr �appendr �OptionContainer�format_option_help� option_groupsr �descriptionr �format_help�dedent�join)r r) r �resultr s r r/ zOptionParser.format_option_help s; � �����I��i���;�;���&�&�t�,�,�,��*�*�9�5�5�6���������� ��M�M�(�2�E�E�d�I�V�V�W�W�W��M�M�$�����'� $� $�E��{�k�)�)��!� *�%3�E�;�%G�%G� *� � � �e�/�/� �:�:�;�;�;�� � �d�#�#�#���������w�w�v�c�r�c�{�#�#�#r c �@ � || j vrt j |� � �|S )zDisable abbreviations.)� _long_optr �BadOptionError)r �opts r �_match_long_optzOptionParser._match_long_opt4 s% � ��d�n�$�$��)�#�.�.�.�� r )N)�__name__� __module__�__qualname__r r/ r: � __classcell__)r"