관리-도구
편집 파일: help_message.cpython-311.pyc
� �܋f� � �J � d Z ddlmZ ddlZddlmZ erddlmZ dd�Zdd�Z dS )zEEverything related to the 'pylint-config -h' command and subcommands.� )�annotationsN)� TYPE_CHECKING)�PyLinter�linterr �command�str�returnc �F � | j j sJ �| j j j d }t |t j � � sJ �|j � � � D ]E\ }}t |t j � � sJ �||k r|� � � dd� c S �FdS )z0Get the help message for one of the subcommands.r N���� ) �_arg_parser�_subparsers�_group_actions� isinstance�argparse�_SubParsersAction�choices�items�ArgumentParser�format_help)r r �subparser_action�name� subparsers �z/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/config/_pylint_config/help_message.py�get_subparser_helpr s� � � ��)�)�)�)��)�5�D�Q�G���&��(B�C�C�C�C�C�+�3�9�9�;�;� 0� 0���i��)�X�%<�=�=�=�=�=��7�?�?��(�(�*�*�3�B�3�/�/�/�/� � �2� �parser�argparse.ArgumentParserc �� � | � � � }|� | j | j | j � � |� | j � � | j D ]o}|j dk rb|� |j � � |� |j � � |� |j � � |� � � �p|� | j � � |� � � S )ztGet the help message for the main 'pylint-config' command. Taken from argparse.ArgumentParser.format_help. �Subcommands)�_get_formatter� add_usage�usage�_actions�_mutually_exclusive_groups�add_text�description�_action_groups�title� start_section� add_argumentsr �end_section�epilogr )r � formatter�action_groups r �get_helpr0 s� � � �%�%�'�'�I� �����f�o�v�'H�� � � ���v�)�*�*�*� �-� $� $�����.�.��#�#�L�$6�7�7�7����|�7�8�8�8��#�#�L�$?�@�@�@��!�!�#�#�#�� ���v�}�%�%�%� � � �"�"�"r )r r r r r r )r r r r ) �__doc__� __future__r r �typingr �pylint.lint.pylinterr r r0 � r r �<module>r6 s� �� L� K� #� "� "� "� "� "� ���� � � � � � �� .�-�-�-�-�-�-�� � � �#� #� #� #� #� #r