
Q@Vc           @   s  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z e j d d f k rd d  d l m Z n d  d l m Z e j d d f k  r d  d l m	 Z	 n d  d l
 m	 Z	 e e  j e  j e  j e  j e  j g  Z i  Z e d  Z e d	  Z d
 e  j e  j e  j f d     YZ d Z d Z d Z d Z d e  j f d     YZ d e f d     YZ  d e! f d     YZ" d   Z# d   Z$ e  j% j# e  j% _& e# e  j% _# e  j' Z' e  j Z e  j Z e  j Z e  j( Z( e  j) Z) e  j* Z* e  j+ Z+ e  j, Z, e  j- Z- e  j. Z. e  j/ Z/ e  j0 Z0 e  j1 Z1 e Z2 e Z3 e Z4 e Z5 e  j% j# e  j% _6 e  j% j# e  j% _7 e j8 e _9 e j: e _; e Z< e Z= e Z> d S(   iNi   i    (   t   StringIOi   i   (   t   OrderedDictc         K   su   |  d k r d }  n  |  t k r> t d |  t |  f   n  | j d t j  | j d d  t |   t |  <d S(   s   Creates a global ArgumentParser instance with the given name,
    passing any args other than "name" to the ArgumentParser constructor.
    This instance can then be retrieved using getArgumentParser(..)
    t   defaultsb   kwargs besides 'name' can only be passed in the first time. '%s' ArgumentParser already exists: %st   formatter_classt   conflict_handlert   resolveN(   t   Nonet   _parserst
   ValueErrort
   setdefaultt   argparset   ArgumentDefaultsHelpFormattert   ArgumentParser(   t   namet   kwargs(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   initArgumentParser   s    	c         K   sK   |  d k r d }  n  t |  d k s3 |  t k rC t |  |  n  t |  S(   s  Returns the global ArgumentParser instance with the given name. The 1st
    time this function is called, a new ArgumentParser instance will be created
    for the given name, and any args other than "name" will be passed on to the
    ArgumentParser constructor.
    R   i    N(   R   t   lenR   R   (   R   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   getArgumentParser-   s
    	t    ArgumentDefaultsRawHelpFormatterc           B   s   e  Z d  Z RS(   sC   HelpFormatter that adds default values AND doesn't do line-wrapping(   t   __name__t
   __module__t   __doc__(    (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR   =   s   t   command_linet   environment_variablest   config_filet   defaultsR   c           B   s   e  Z d  Z d d d d d g  e j d d d d e e e d d g  e e g  e d g  d d  Z d d d e	 j
 d  Z d d d e	 j
 d  Z d   Z d	   Z d
   Z d   Z d   Z d   Z e j d  Z d   Z RS(   s   Drop-in replacement for argparse.ArgumentParser that adds support for
    environment variables and .ini or .yaml-style config files.
    t   -t   errors   config file pathsf   takes the current command line args and writes them out to a config file at the given path, then exitsc      
   C   s  | |  _  | |  _ | |  _ t d   t   j   D  } t j d k r_ d | k r_ | d =n  t j	 j
 |  |  | d k r t   |  _ n	 | |  _ | |  _ | p | |  _ | r |  j d d d | d | d t |  n  | r
|  j d d	 d
 d d | d t |  n  d S(   sa  Supports all the same args as the argparse.ArgumentParser
        constructor, as well as the following additional args.

        Additional Args:
            add_config_file_help: Whether to add a description of config file
                syntax to the help message.
            add_env_var_help: Whether to add something to the help message for
                args that can be set through environment variables.
            auto_env_var_prefix: If set to a string instead of None, all config-
                file-settable options will become also settable via environment
                variables whose names are this prefix followed by the config
                file key, all in upper case. (eg. setting this to "foo_" will
                allow an arg like "--my-arg" to also be set via the FOO_MY_ARG
                environment variable)
            config_file_parser: An instance of a parser to be used for parsing
                config files. Default: ConfigFileParser()
            default_config_files: When specified, this list of config files will
                be parsed in order, with the values from each config file
                taking precedence over pervious ones. This allows an application
                to look for config files in multiple standard locations such as
                the install directory, home directory, and current directory:
                ["<install dir>/app_config.ini",
                "~/.my_app_config.ini",
                "./app_config.txt"]
            ignore_unknown_config_file_keys: If true, settings that are found
                in a config file but don't correspond to any defined
                configargparse args will be ignored. If false, they will be
                processed and appended to the commandline like other args, and
                can be retrieved using parse_known_args() instead of parse_args()
            allow_unknown_config_file_keys:
                @deprecated
                Use ignore_unknown_config_file_keys instead.

                If true, settings that are found in a config file but don't
                correspond to any defined configargparse args, will still be
                processed and appended to the command line (eg. for
                parsing with parse_known_args()). If false, they will be ignored.

            args_for_setting_config_path: A list of one or more command line
                args to be used for specifying the config file path
                (eg. ["-c", "--config-file"]). Default: []
            config_arg_is_required: When args_for_setting_config_path is set,
                set this to True to always require users to provide a config path.
            config_arg_help_message: the help message to use for the
                args listed in args_for_setting_config_path.
            args_for_writing_out_config_file: A list of one or more command line
                args to use for specifying a config file output path. If
                provided, these args cause configargparse to write out a config
                file with settings based on the other provided commandline args,
                environment variants and defaults, and then to exit.
                (eg. ["-w", "--write-out-config-file"]). Default: []
            write_out_config_file_arg_help_message: The help message to use for
                the args in args_for_writing_out_config_file.
        c         s   s-   |  ]# \ } } | d k r | | f Vq d S(   t   progt   usaget   descriptiont   epilogt   versiont   parentsR   t   prefix_charst   fromfile_prefix_charst   argument_defaultR   t   add_helpN(   s   progs   usages   descriptions   epilogs   versions   parentss   formatter_classs   prefix_charss   fromfile_prefix_charss   argument_defaults   conflict_handlers   add_help(    (   t   .0t   kt   v(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pys	   <genexpr>   s      i   R    t   destR   t   requiredt   helpt   is_config_file_argt"   write_out_config_file_to_this_patht   metavart   CONFIG_OUTPUT_PATHt   is_write_out_config_file_argN(   i   i   (   t   _add_config_file_helpt   _add_env_var_helpt   _auto_env_var_prefixt   dictt   localst   itemst   syst   version_infoR
   R   t   __init__R   t   ConfigFileParsert   _config_file_parsert   _default_config_filest    _ignore_unknown_config_file_keyst   add_argumentt   True(   t   selfR   R   R   R   R    R!   R   R"   R#   R$   R   R%   t   add_config_file_helpt   add_env_var_helpt   auto_env_var_prefixt   config_file_parsert   default_config_filest   ignore_unknown_config_file_keyst   allow_unknown_config_file_keyst   args_for_setting_config_patht   config_arg_is_requiredt   config_arg_help_messaget    args_for_writing_out_config_filet&   write_out_config_file_arg_help_messaget   kwargs_for_super(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR9   Q   s.    X			
				c      	   C   sQ   |  j  d | d | d | d |  \ } } | rM |  j d d j |   n  | S(   sT  Supports all the same args as the ArgumentParser.parse_args(..),
        as well as the following additional args.

        Additional Args:
            args: a list of args as in argparse, or a string (eg. "-x -y bla")
            config_file_contents: String. Used for testing.
            env_vars: Dictionary. Used for testing.
        t   argst	   namespacet   config_file_contentst   env_varss   unrecognized arguments: %st    (   t   parse_known_argsR   t   join(   R@   RN   RO   RP   RQ   t   argv(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt
   parse_args   s    
c            sJ  | d k r t j d } n- t |  t k r= | j   } n t |  } x   j D] } | j | _	 qS Wt
     _ | r d t |  f } i | d 6  j t <n    j d k	 r@x   j D]{ }   j |  } | r | j p | j	 p | j p | j r | d j   j  }   j | j d d  j   | _ q q Wn  g  }	 g    j D]A } | j	 rP| j rP| j | k rPt | | j  rP| ^ qP}
 x: |
 D]2 } | j } | | } |	   j | | |  7}	 qW| |	 7} |	 r#t
 g  |
 D]" } | j | | | j f f ^ q   j t <n  t   f d     j D  } | rit |  } d | _ | g } n   j |  } xe| d d d	  D]P} z= y   j j |  } Wn  t k
 r}   j  |  n XWd t! | d
  r| j"   n  Xg  } x | j#   D] \ } } | | k r9| | } t | | j  } n' d }   j$ p]t |   j% |   } | s|   j | | |  7} d t& | j f } |   j k rt
     j | <n  | | f   j | | <qqW| | 7} qWt
   } x   j D] } | j	 p| j' t( t) g k } t | | j  s| s| j* d k s| j* t+ k st |  t, k rgqq| j r| j d	 } n	 | j- } | t | j*  f | | <qW| r|   j t. <n  t/ j0 j1   d | d | \ } } g    j D] } t2 | d t3  r| ^ q} | r@g  } x | D]y } t2 | | j- d  } | r!y) t4 | d   } | j5 |  Wd QXWqt6 k
 r} t7 d | | f   qXq!q!W| r@  j8   j |  }   j j9 |  } x3 | D]+ } t4 | d   } | j: |  Wd QXqWt; |  d k r | d } n    j< d d t |   q@n  | | f S(   sT  Supports all the same args as the ArgumentParser.parse_args(..),
        as well as the following additional args.

        Additional Args:
            args: a list of args as in argparse, or a string (eg. "-x -y bla")
            config_file_contents: String. Used for testing.
            env_vars: Dictionary. Used for testing.
        i   t    i    R   t   _c         3   s1   |  ]' }   j  |  D] } | | f Vq q d  S(   N(   t   get_possible_config_keys(   R&   t   actiont
   config_key(   R@   (    s2   /usr/lib/python2.7/dist-packages/configargparse.pys	   <genexpr>  s    s
   method argNit   closes   %s|%sRN   RO   R0   t   ws    Couldn't open %s for writing: %ss   Wrote config file to (=   R   R7   RU   t   typet   strt   splitt   listt   _actionst   option_stringst   is_positional_argR   t   _source_to_settingst   _COMMAND_LINE_SOURCE_KEYR3   RY   t   env_varR,   R0   t   stripR"   t   replacet   uppert   already_on_command_linet#   convert_setting_to_command_line_argt   _ENV_VAR_SOURCE_KEYR4   R    R   t   _open_config_filesR;   t   parset   ConfigFileParserExceptionR   t   hasattrR\   R6   R=   t4   get_command_line_key_for_unknown_config_file_settingt   _CONFIG_FILE_SOURCE_KEYt   nargst   OPTIONALt   ZERO_OR_MORER   t   SUPPRESSt#   ACTION_TYPES_THAT_DONT_NEED_A_VALUER)   t   _DEFAULTS_SOURCE_KEYR
   R   RS   t   getattrt   Falset   opent   appendt   IOErrorR   t    get_items_for_config_file_outputt	   serializet   writeR   t   exit(   R@   RN   RO   RP   RQ   t   at   a_v_pairt   config_file_keyst   stripped_config_file_keyt   env_var_argst   actions_with_env_var_valuesRZ   t   keyt   valuet   known_config_keyst   streamt   config_streamst   config_settingst   et   config_argst   discard_this_keyt
   source_keyt   default_settingst   cares_about_default_valuet   unknown_argst&   user_write_out_config_file_arg_actionst   output_file_pathst   output_file_patht   output_filet   config_itemst   contents(    (   R@   s2   /usr/lib/python2.7/dist-packages/configargparse.pyRS      s    

&"	
	
9	 
			
			 c         C   s+   | j  |  j  } |  j d d | } | S(   s  Compute a commandline arg key to be used for a config file setting
        that doesn't correspond to any defined configargparse arg (and so
        doesn't have a user-specified commandline arg key).

        Args:
            key: The config file key that was being set.
        i    i   (   Rh   R"   (   R@   R   t   key_without_prefix_charst   command_line_key(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRr   }  s    c         C   sV  t    } xF| j   D]8\ } } | t k r| d \ } } x|  j D] } |  j |  }	 |	 rH | j rH t | | j  rH t | | j	 d  }
 |
 d k	 rt |
  t k r t |
  j   }
 n5 t |
  t k r d d j t t |
   d }
 n  |
 | |	 d <qqH qH Wq | t k rx(| j   D]\ \ } \ } }
 |  j |  }	 |	 r0t | | j	 d  }
 |
 d k	 r|
 | |	 d <qq0q0Wq | j t  rx | j   D] \ } \ } }
 |
 | | <qWq | t k r xm | j   D]\ \ } \ } }
 |  j |  }	 |	 rt | | j	 d  }
 |
 d k	 rG|
 | |	 d <qGqqWq q W| S(   s  Does the inverse of config parsing by taking parsed values and
        converting them back to a string representing config file contents.

        Args:
            source_to_settings: the dictionary created within parse_known_args()
            parsed_namespace: namespace object created within parse_known_args()
        Returns:
            an OrderedDict with the items to be written to the config file
        RW   t   [s   , t   ]i    N(   R   R6   Rf   Rb   RY   Rd   Rk   Rc   Rz   R)   R   R^   t   boolR_   t   lowerRa   RT   t   mapRm   t
   startswithRs   Ry   (   R@   t   source_to_settingst   parsed_namespacet   config_file_itemst   sourcet   settingsRX   t   existing_command_line_argsRZ   R   R   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR     sD    	#c         C   s  t  |  t k r+ t d t |    n  g  } | d k rO |  j |  } n | j d } | j   d k r | d k	 r t  |  t k r |  j d |  q n  | j	 |  n | j
 d  rS| j d  rS| d k	 rt  |  t j k r|  j d | | f  qn  x | d d !j d	  D]& } | j	 |  | j	 | j    q&WnU | d k	 rt  |  t k r|  j d
 | | f  qn  | j	 |  | j	 |  | S(   s  Converts a config file or env var key/value to a list of
        commandline args to append to the commandline.

        Args:
            action: The action corresponding to this setting, or None if this
                is a config file setting that doesn't correspond to any
                defined configargparse arg.
            key: The config file key or env var name
            value: The raw value string from the config file or env var
        s   type(value) != str: %sit   trues$   %s set to 'True' rather than a valueR   R   sL   %s can't be set to a list '%s' unless its action type is changed to 'append'i   t   ,s%   %s is a flag but is being set to '%s'N(   R^   R_   R   R   Rr   Rc   R   Rx   R   R}   R   t   endswithR
   t   _AppendActionR`   Rh   (   R@   RZ   R   R   RN   R   t	   list_elem(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRl     s4    		c         C   sd   g  } xW | j  D]L } t g  |  j D] } | j d |  ^ q#  r | | d | g 7} q q W| S(   s   This method decides which actions can be set in a config file and
        what their keys will be. It returns a list of 0 or more config keys that
        can be used to set the given action's value in a config file.
        i   (   Rc   t   anyR"   R   (   R@   RZ   t   keyst   argt   c(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRY     s
    /c         C   sv  g  t  t j j |  j  D]$ } t j j |  r t |  ^ q } | sM | Sg  |  j D] } t | d t	  rW | ^ qW } | s | Sx | D] } t
 j d |  j d t	  } | j |  d   } t j | |  | _ | j d |  }	 |	 s q n  |	 \ }
 } t |
 | j d  } | s#q n  t j j |  } t j j |  s[|  j d |  n  | t |  g 7} q W| S(   sl  Tries to parse config file path(s) from within command_line_args. 
        Returns a list of opened config files, including files specified on the 
        commandline as well as any default_config_files specified in the
        constructor that are present on disk.

        Args:
            command_line_args: List of all args (already split on spaces)
        R,   R"   R%   c         S   s   d  S(   N(    (   R@   t   message(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   error_method  s    RN   s   File not found: %sN(   R   t   ost   patht
   expanduserR<   t   isfileR|   Rb   Rz   R{   R
   R   R"   t   _add_actiont   typest
   MethodTypeR   RS   R)   R   (   R@   t   command_line_argst   ft   config_filesR   t   user_config_file_arg_actionsRZ   t
   arg_parserR   t
   parsed_argRO   RX   t   user_config_file(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRn     s4    
=.				c         C   s)  i d t  6d t 6d t 6d t 6} t   } x |  j j   D] \ } } | j d  } | | d t | d  } | j	 |  x | j   D] \ } \ } } | r | j	 d | d	 | f  q t
 |  t k r | j	 d
 |  q t
 |  t k r | j	 d
 d j |   q q Wq; W| j   S(   s   Returns a string with all args and settings and where they came from
        (eg. commandline, config file, enviroment variable or default)
        s   Command Line Args: s   Environment Variables:
s   Config File (%s):
s
   Defaults:
t   |i    i   s
     %-19s%s
t   :s     %s
RR   (   Rf   Rm   Rs   Ry   R    Re   R6   R`   t   tupleR   R^   R_   Ra   RT   t   getvalue(   R@   t   source_key_to_display_value_mapt   rR   R   R   RZ   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   format_values*  s$    
	%c         C   s   | j  |  j    d S(   sB   Prints the format_values() string (to sys.stdout or another file).N(   R   R   (   R@   t   file(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   print_valuesE  s    c         C   s  d } t  } t  } |  j ry|  j } d |  j d } g  |  j D]S } | j D]C } |  j |  rL | j d k p | j p | j	 rL | | f ^ qL q? } g  |  j D] } t
 | d t   r | ^ q }	 | ry| s |	 ryt  |  _ t } | d | | d d f 7} d j d   |	 D  }
 |
 r/d	 |
 }
 n  | s;|
 r\| d
 d j | |
 g  7} n  | d |  j j   7} qyn  |  j r"g  |  j D]' } t
 | d d   r| j | f ^ q} xf | D][ \ } } d | } | j sd | _ n  | | j k r| j | 7_ t } t  |  _ qqWn  | s.| r}d g } | rMd g | } n  | rcd g | } n  | d d j |  7} n  | r|  j pd d | |  _ n  t j j |   S(   NRW   i   i    R+   R,   sC   Args that start with '%s' (eg. %s) can also be set in a config files    or c         s   s%   |  ] } | j  r | j  d  Vq d S(   i    N(   Rc   (   R&   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pys	   <genexpr>^  s   s   specified via s    (%s).RR   Rg   s      [env var: %s]R   s   config file valuess   environment variablessT    If an arg is specified in more than one place, then commandline values override %s.s    which override (   R{   R1   R<   R"   Rb   Rc   RY   R)   R,   R0   Rz   R?   RT   R;   t   get_syntax_descriptionR2   R   Rg   R+   R   R
   R   t   format_help(   R@   t   msgt   added_config_file_helpt   added_env_var_helpRE   t   ccR   R   t   config_settable_argst   config_path_actionst   config_arg_stringt   env_var_actionsRg   t   env_var_help_stringt   value_sources(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR   I  s`    		+		'
		N(   R   R   R   R   R
   t   HelpFormatterR?   R{   R9   R   t   environRV   RS   Rr   R   Rl   RY   Rn   R   R7   t   stdoutR   R   (    (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR   L   sJ   ]		/	+		9	R:   c           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   ss  t    } xct |  D]U\ } } | j   } | s | d d k s | j d  rZ q n  d } d } | d | d	 } | d
 | d } | d }	 t j d | |	 d |  }
 |
 r |
 j d  } d | | <q n  t j d | | |	 d |  pt j d | | |	 d |  } | rO| j d  } | j d  } | | | <q n  t d | | j | f   q W| S(   s8   Parses a config file and return a dictionary of settingsi    t   #t   ;R   s   ---s   \s*s   (?P<key>[^:=;#\s]+?)s   [:=]s   (?P<value>[^;#]+?)s   [\s]s   (?P<value>[^;#\s]+?)s   (?P<comment>\s[;#].*)?t   ^t   $R   R   R   s   Unexpected line %s in %s: %s(   R   R   R   (	   R   t	   enumerateRh   R   t   ret   matcht   groupRp   R   (   R@   R   R   t   it   linet   white_spaceR   t   value1t   value2t   commentt   key_only_matcht   key_value_matchR   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRo     s2    	&

""
c         C   sG   t    } x1 | j   D]# \ } } | j d | | f  q W| j   S(   s1  Does the inverse of config parsing by taking parsed values and
        converting them back to a string representing config file contents.

        Args:
            items: an OrderedDict with items to be written to the config file
        Returns:
            contents of config file as a string
        s   %s = %s
(   R    R6   R   R   (   R@   R6   R   R   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR     s    		c         C   s
   d } | S(   Ns   The recognized syntax for setting (key, value) pairs is based on the INI and YAML formats (e.g. key=value or foo=TRUE). For full documentation of the differences from the standards please refer to the ConfigArgParse documentation.(    (   R@   R   (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR     s    (   R   R   Ro   R   R   (    (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR:     s   	 	Rp   c           B   s   e  Z d  Z RS(   s,   Raised when config file parsing failed.
    (   R   R   R   (    (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyRp     s   c         O   s$  | j  d d
  } | j  d d
  p3 | j  d d
  } | j  d d
  } |  j | |   } | j | _ | | _ | | _ | | _ | j r | r t d   n  | j r t	 |  t
 j k r t d   n  | j r d } t	 |  t
 j k rt | d   n  | r t | d	   q n  | S(   s
  
    This method supports the same args as ArgumentParser.add_argument(..)
    as well as the additional args below.

    Additional Args:
        env_var: If set, the value of this environment variable will override
            any config file or default values for this arg (but can itself
            be overriden on the commandline). Also, if auto_env_var_prefix is
            set in the constructor, this env var name will be used instead of
            the automatic name.
        is_config_file_arg: If True, this arg is treated as a config file path
            This provides an alternative way to specify config files in place of
            the ArgumentParser(fromfile_prefix_chars=..) mechanism.
            Default: False
        is_write_out_config_file_arg: If True, this arg will be treated as a
            config file path, and, when it is specified, will cause
            configargparse to write all current commandline args to this file
            as config options and then exit.
            Default: False
    Rg   R,   t   is_config_fileR0   s*   env_var can't be set for a positional arg.s9   arg with is_config_file_arg=True must have action='store's+   arg with is_write_out_config_file_arg=True s   must have action='store's'   can't also have is_config_file_arg=TrueN(   t   popR   t   original_add_argument_methodRc   Rd   Rg   R,   R0   R   R^   R
   t   _StoreAction(   R@   RN   R   Rg   R,   R0   RZ   t   error_prefix(    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyR>     s,    				c            s   t    f d   | D  S(   sd   Utility method for checking if any of the existing_args is
    already present in existing_args
    c         3   s   |  ] } |   k Vq d  S(   N(    (   R&   t   potential_arg(   t   existing_args(    s2   /usr/lib/python2.7/dist-packages/configargparse.pys	   <genexpr>  s   (   R   (   R   t   potential_command_line_args(    (   R   s2   /usr/lib/python2.7/dist-packages/configargparse.pyRk     s    (?   R
   R   R   R7   R   R8   t   ioR    t   ordereddictR   t   collectionst   sett   _StoreTrueActiont   _StoreFalseActiont   _CountActiont   _StoreConstActiont   _AppendConstActionRx   R   R   R   R   R   t   RawTextHelpFormattert   RawDescriptionHelpFormatterR   Rf   Rm   Rs   Ry   R   t   objectR:   t	   ExceptionRp   R>   Rk   t   _ActionsContainerR   R   t   ArgumentErrort   ArgumentTypeErrort   Actiont   FileTypet	   Namespacet   ONE_OR_MORERu   t	   REMAINDERRw   Rv   t   getArgParsert	   getParsert	   ArgParsert   Parsert   add_argt   addRV   Ro   RS   t   parse_knownt   RawFormattert   DefaultsFormattert   DefaultsRawFormatter(    (    (    s2   /usr/lib/python2.7/dist-packages/configargparse.pyt   <module>   st   	  87	6	
														