Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
File Content:
arguments.pyc
� =��Xc @ s� d d l Z d d l m Z d d l Z d � Z d � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t CustomArgumentc C sr | d k r d St j j t j j | � � } t j t j j t j j | � � t j � sn t d | � � n | S( s= Asserts that a path is writable and returns the expanded pathNs Unable to write to file: %s( t Nonet ost patht expandusert expandvarst accesst dirnamet abspatht W_OKt ValueError( R t outfile( ( s? /tmp/pip-build-uEGWVr/awscli/awscli/customizations/arguments.pyt resolve_given_outfile_path s -c C s | d d d k S( s- Returns True if a parsed result is successfult ResponseMetadatat HTTPStatusCodei, ( ( t parsed_result( ( s? /tmp/pip-build-uEGWVr/awscli/awscli/customizations/arguments.pyt is_parsed_result_successful s t OverrideRequiredArgsArgumentc B s6 e Z d Z i d d 6Z d � Z d � Z d � Z RS( s� An argument that if specified makes all other arguments not required By not required, it refers to not having an error thrown when the parser does not find an argument that is required on the command line. To obtain this argument's property of ignoring required arguments, subclass from this class and fill out the ``ARG_DATA`` parameter as described below. Note this class is really only useful for subclassing. s no-required-argst namec C s0 | | _ | j � t t | � j | j � d S( N( t _sessiont _register_argument_actiont superR t __init__t ARG_DATA( t selft session( ( s? /tmp/pip-build-uEGWVr/awscli/awscli/customizations/arguments.pyR 7 s c C s | j j d | j � d S( Ns% before-building-argument-table-parser( R t registert override_required_args( R ( ( s? /tmp/pip-build-uEGWVr/awscli/awscli/customizations/arguments.pyR <