File: //proc/self/root/usr/lib/python3.6/site-packages/awscli/__pycache__/argparser.cpython-36.pyc
3
�T_� � @ s� d dl Z d dlZd dlmZ d dlmZ dZdZdeef ZG dd� de j �Z
G d d
� d
e j�ZG dd� de�Z
G d
d� de�ZG dd� de�ZdS )� N)�six)�get_close_matchesa Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.htmlzbTo see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
zS
%s
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
%sc sD e Zd ZdZ� fdd�Zd
dd�Zedd� �Zejd d� �Z� Z S )�
CommandActionz�Custom action for CLI command arguments
Allows the choices for the argument to be mutable. The choices
are dynamically retrieved from the keys of the referenced command
table
c s* || _ tt| �j||fd| ji|�� d S )N�choices)�
command_table�superr �__init__r )�selfZoption_strings�destr �kwargs)� __class__� �/usr/lib/python3.6/argparser.pyr 1 s
zCommandAction.__init__Nc C s t || j|� d S )N)�setattrr
)r �parser� namespace�valuesZ
option_stringr
r
r �__call__7 s zCommandAction.__call__c C s t | jj� �S )N)�listr �keys)r r
r
r r : s zCommandAction.choicesc C s d S )Nr
)r �valr
r
r r >