R`i d Z ddlZddlZddlZddlmZmZmZ ddlm Z ddl
mZ ddlm
Z
mZ ddlmZmZ ddlmZ dd lmZmZ d
dgZde
fd
Zdedee fdZdee deeee f fdZy)z=A single place for constructing and exposing the main parser
N)ListOptionalTuple)get_runnable_pip)
cmdoptions)ConfigOptionParserUpdatingDefaultsHelpFormatter)
commands_dictget_similar_commands)CommandError)get_pip_versionget_progcreate_main_parser
parse_commandreturnc t ddt dt } | j t | _ t
j t j | }| j | d| _
dgt j D cg c] \ }}|dd|j c}}z }d j | | _ | S c c}}w )
z1Creates and returns the main parser for pip's CLIz
%prog