관리-도구
편집 파일: main_parser.cpython-35.pyc
��Re � @ s� d Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z m Z d d l m Z e r� d d l m Z m Z d d g Z d d � Z d d � Z d S)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 s� d d d d d t � d d d t � i } t | � } | j � t � | _ t j t j | � } | j | � d | _ d g d d � t j � D� } d j | � | _ | S)z6Creates and returns the main parser for pip's CLI �usagez %prog <command> [options]�add_help_optionF� formatter�name�global�progT� c S s( g | ] \ } } d j t � � � q S)z {name:27} {command_info.summary})�format�locals)�.0r �command_info� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/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&