관리-도구
편집 파일: main_parser.cpython-312.pyc
� G��e� � �� � d Z ddlZddlZddlZddlmZmZmZ ddlm Z ddl mZ ddlm Z mZ ddlmZmZ ddlmZ dd lmZmZ d dgZde fd �Zdedee fd�Zdee deeee f fd�Zy)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 � �� } | j � t � | _ t j t j | � }| j |� d| _ dgt j � D ��cg c] \ }}|d�d|j � ��� c}}z }d j |� | _ | S c c}}w ) z1Creates and returns the main parser for pip's CLIz %prog <command> [options]F�global)�usage�add_help_option� formatter�name�progT� �27� � )r r r �disable_interspersed_argsr �versionr �make_option_group� general_group�add_option_group�mainr �items�summary�join�description)�parser�gen_optsr �command_infor&