
    yIf                    J    d Z ddlmZ ddlZddlmZ erddlmZ ddZddZ	dS )zEEverything related to the 'pylint-config -h' command and subcommands.    )annotationsN)TYPE_CHECKING)PyLinterlinterr   commandstrreturnc                F   | j         j        sJ | j         j        j        d         }t          |t          j                  sJ |j                                        D ]E\  }}t          |t          j                  sJ ||k    r|	                                dd         c S FdS )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        ]/var/www/piapp/venv/lib/python3.11/site-packages/pylint/config/_pylint_config/help_message.pyget_subparser_helpr      s     )))))5DQG&(BCCCCC+399;; 0 0i)X%<=====7??((**3B3////  2    parserargparse.ArgumentParserc                   |                                  }|                    | j        | j        | j                   |                    | j                   | j        D ]o}|j        dk    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 fov'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   