관리-도구
편집 파일: main_parser.cpython-36.pyc
3 �Re � @ s� d Z ddlZddlZddlmZ ddlmZmZ ddlm Z m Z ddlmZ ddl mZmZ ddlmZ er|dd lmZmZ d dgZdd � Zd d� ZdS )z=A single place for constructing and exposing the main parser � N)� cmdoptions)�ConfigOptionParser�UpdatingDefaultsHelpFormatter)� commands_dict�get_similar_commands)�CommandError)�get_pip_version�get_prog)�MYPY_CHECK_RUNNING)�Tuple�List�create_main_parser� parse_commandc C st ddt � dt� d�} tf | �}|j� t� |_tjtj|�}|j |� d|_ dgdd� tj� D � }d j |�|_|S ) z6Creates and returns the main parser for pip's CLI z %prog <command> [options]F�global)�usage�add_help_option� formatter�name�progT� c S s g | ]\}}d j f t� ��qS )z {name:27} {command_info.summary})�format�locals)�.0r �command_info� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py� <listcomp>3 s z&create_main_parser.<locals>.<listcomp>� )r r r �disable_interspersed_argsr �versionr �make_option_group� general_group�add_option_group�mainr �items�join�description)� parser_kw�parser�gen_optsr&