ruạṛ
a eV�i3 � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z mZ ddlmZmZ dd lmZ dd lmZmZ ddgZd d�dd�Zddd�dd�Zddd�dd�ZdS )z<A single place for constructing and exposing the main parser� )�annotationsN)�escape)�get_runnable_pip)� cmdoptions)�ConfigOptionParser�UpdatingDefaultsHelpFormatter)� commands_dict�get_similar_commands)�CommandError)�get_pip_version�get_prog�create_main_parser� parse_commandr )�returnc C sl t ddt� dt� d�} | �� t� | _t�tj| �}| � |� d| _ dgdd� t�� D � }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 S s( g | ] \}}d |d�dt |j�� ��qS )z[optparse.longargs]�27z[/] )r �summary)�.0r �command_info� r �P/opt/bart/bart_venv/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py� <listcomp>+ 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�gen_optsr'