관리-도구
편집 파일: main_parser.cpython-311.pyc
� �܋f� � �� � d Z ddlZddlZddlZddlmZmZmZ ddlm Z ddl mZ ddlm Z mZ ddlmZmZ ddlmZ dd lmZmZ d dgZde fd �Zdedee fd�Zdee deeee f fd�ZdS )z=A single place for constructing and exposing the main parser � N)�List�Optional�Tuple)�get_runnable_pip)� cmdoptions)�ConfigOptionParser�UpdatingDefaultsHelpFormatter)� commands_dict�get_similar_commands)�CommandError)�get_pip_version�get_prog�create_main_parser� parse_command�returnc � � t ddt � � dt � � �� � } | � � � t � � | _ t j t j | � � }| � |� � d| _ dgd� t j � � D � � z }d� |� � | _ | S ) z1Creates and returns the main parser for pip's CLIz %prog <command> [options]F�global)�usage�add_help_option� formatter�name�progT� c �. � g | ]\ }}|d �d|j � ���S )�27� )�summary)�.0r �command_infos �T/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/cli/main_parser.py� <listcomp>z&create_main_parser.<locals>.<listcomp>) s@ � � � � ��D�,� �+�+�+�\�)�+�+�� � � � )r r r �disable_interspersed_argsr �versionr �make_option_group� general_group�add_option_group�mainr �items�join�description)�parser�gen_optsr, s r r r s� � � �+��/�1�1� � �Z�Z�� � �F� �$�$�&�&�&�$�&�&�F�N� �+�J�,D�f�M�M�H� ���H�%�%�%� �F�K� �$� � �"/�"5�"7�"7�� � � �K� ���;�/�/�F���Mr"