관리-도구
편집 파일: cmdoptions.cpython-36.pyc
3 �Renp � @ s d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZmZm Z ddlmZ ddlmZ dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ e�rddl m!Z!m"Z"m#Z#m$Z$m%Z% ddl m&Z&m'Z' ddl(m)Z) dd� Z*dd� Z+�ddd�Z,�ddd�Z-dd� Z.G dd� de�Z/e ed d!d"d"d#d$�Z0e ed%d&d'dd(d)�Z1e ed*d+d,d'ded)�Z2e ed-d.d/d0dd1d)�Z3e ed2d3d'dd4d)�Z4e ed5d6d7d'd8d$�Z5e ed9d:d;d0dd<d)�Z6e ed=d>d?e7ej8� �d@dAdBj9ej8� � dC dD�Z:e e/dEdFdGdHdIdIdJdK�Z;e edLdMd'ddNd)�Z<e edOdPdQdRdSdT�Z=e edUdVdWdXdYdT�Z>e edZd[d\d]d^d_d`da�Z?dbdc� Z@e e/dddedIdIdfdg�ZAe e/dhdidIddIdjdk�ZBe edldmdndodpejCdqdr�ZDdsdt� ZEe edudvd'ddwd)�ZFdxdy� ZGdzd{� ZHd|d}� ZId~d� ZJd�d�� ZKd�d�� ZLe e/d�d�d�d�d�dId�e� d�eLd�d��ZMd�d�� ZNd�d�� ZOd�d�� ZPd�d�� ZQd�d�� ZRe ed�d�d�dd�dr�ZSd�d�� ZTd�d�� ZUe ed�d�d�d�eUdQded��d�� ZVe ed�d�d�dd�dr�ZWe ed�d�d�dd�dr�ZXd�d�� ZYd�d�� ZZd�d�� Z[e e/d�d�ed�dId�d��Z\d�d�� Z]e ed�d�d�e]d�d��Z^e ed�d�d�d'dd�d)�Z_d�d�� Z`e e/d�d�d�d�d�dId�d�e`d�dÍZae ed�d�d'd�d$�Zbe ed�d�d�d�d�d)�Zcd�d̈́ Zde ed�d�d'dd�d)�Zee ed�d�d�eddedҍZfe ed�d�d�d�d�d؍Zge ed�d�d�d�d�d؍Zhe ed�d'dd�dލZie ed�d'dd�dލZje ed�d�d'dd�d)�Zkd�d� Zle ed�d�d�eld�d�d�Zme ed�d�d'dd�d)�Zne e/d�dIdId�d�d�Zod�d� Zpe ed�d�d'dd�d)�Zqe ed�d�d�d�g d�ged��Zre ed�d�d�d�g d�d�gd�d��Zse e�d �dd�d�g g �dd��Zt�de0e1e2e3e5e6e;e<e=e>e?e@eHeAeBe\e^eke4eqeresetg�d�Zu�deDeEeFeGg�d�ZvdS ( aC shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this design. � )�absolute_importN)� strtobool)�partial)� SUPPRESS_HELP�Option�OptionGroup)�dedent)� BAR_TYPES)�CommandError)�USER_CACHE_DIR�get_src_prefix)� FormatControl)�PyPI)�TargetPython)� STRONG_HASHES)�MYPY_CHECK_RUNNING)�Any�Callable�Dict�Optional�Tuple)�OptionParser�Values)�ConfigOptionParserc C s. dj ||�}tjdj|j� ��}| j|� dS )z� Raise an option parsing error using parser.error(). Args: parser: an OptionParser instance. option: an Option instance. msg: the error text. z{} error: {}� N)�format�textwrap�fill�join�split�error)�parser�option�msg� 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/cmdoptions.py�raise_option_error&