Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/awscli/__pycache__/ |
Upload File : |
o .&�aXS � @ sD d Z ddlZddlZddlmZ ddlmZmZ ddlm Z m Z ddlmZ ddlm Z mZmZ ddlmZ e�d �ZG d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Z d/d#d$�Z!d%d&� Z"d'd(� Z#G d)d*� d*e$�Z%G d+d,� d,e%�Z&G d-d.� d.e%�Z'dS )0zModule for processing CLI args.� N)�six)�OrderedDict�json)�SCALAR_TYPES� COMPLEX_TYPES)� shorthand)�%find_service_and_method_in_event_name�is_document_type�is_document_type_container)�is_json_value_headerzawscli.argprocessc � e Zd Z� fdd�Z� ZS )� ParamErrorc s, d||f }t t| ��|� || _|| _dS )aB :type cli_name: string :param cli_name: The complete cli argument name, e.g. "--foo-bar". It should include the leading hyphens if that's how a user would specify the name. :type message: string :param message: The error message to display to the user. z Error parsing parameter '%s': %sN)�superr �__init__�cli_name�message)�selfr r �full_message�� __class__� �3/usr/lib/python3/dist-packages/awscli/argprocess.pyr s � zParamError.__init__��__name__� __module__�__qualname__r � __classcell__r r r r r � r c @ � e Zd ZdS )�ParamSyntaxErrorN�r r r r r r r r 3 � r c r )�ParamUnknownKeyErrorc s* d� |�}d||f }tt| ��|� d S )N�, z'Unknown key '%s', valid choices are: %s)�joinr r"