Spade
Mini Shell
| Directory:~$ /lib/python2.7/site-packages/ |
| [Home] [System Details] [Kill Me] |
�
��Wc@s�ddlZddlZddlZddlZddlZddlZejddfkrpddlmZnddlmZejddfkr�ddl m
Z
nddlm
Z
eej
ejejejejg�ZiZed�Zed �Zd
ejejejfd��YZdefd
��YZdefd��YZdefd��YZdefd��YZ
dZ!dZ"dZ#dZ$dej%fd��YZ%d�Z&d�Z'ej(j&ej(_)e&ej(_&ej*Z*ejZejZejZej+Z+ej,Z,ej-Z-ej.Z.ej/Z/ej0Z0ej1Z1ej2Z2ej3Z3ej4Z4eZ5eZ6eZ7eZ8eZ9eZ:e%Z;e%Z<ej(j&ej(_=ej(j&ej(_>e%j?e%_@e%jAe%_BeZCeZDeZEdS(i����Nii(tStringIOii(tOrderedDictcKsu|dkrd}n|tkr>td|t|f��n|jdtj�|jdd�t|�t|<dS(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 get_argument_parser(..)
tdefaultsbkwargs besides 'name' can only be passed in the
first time. '%s' ArgumentParser already exists:
%stformatter_classtconflict_handlertresolveN(tNonet_parserst
ValueErrort
setdefaulttargparsetArgumentDefaultsHelpFormattertArgumentParser(tnametkwargs((s2/usr/lib/python2.7/site-packages/configargparse.pytinit_argument_parsers cKsK|dkrd}nt|�dks3|tkrCt||�nt|S(sReturns
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.
RiN(RtlenRR(R
R((s2/usr/lib/python2.7/site-packages/configargparse.pytget_argument_parser.s
t ArgumentDefaultsRawHelpFormattercBseZdZRS(sCHelpFormatter
that adds default values AND doesn't do line-wrapping(t__name__t
__module__t__doc__(((s2/usr/lib/python2.7/site-packages/configargparse.pyR=stConfigFileParsercBs)eZdZd�Zd�Zd�ZRS(sRThis
abstract class can be extended to add support for new config file
formatscCstd��dS(s3Returns a string describing the config
file syntax.s*get_syntax_description(..) not
implementedN(tNotImplementedError(tself((s2/usr/lib/python2.7/site-packages/configargparse.pytget_syntax_descriptionIscCstd��dS(sNParses
the keys and values from a config file.
NOTE: For keys that were specified to configargparse as
action="store_true" or "store_false", the
config file value must be
one of: "yes", "no", "true",
"false". Otherwise an error will be raised.
Args:
stream: A config file input stream (such as an open file
object).
Returns:
OrderedDict of items where the keys have type string and the
values have type either string or list (eg. to support config
file
formats like YAML which allow lists).
sparse(..) not
implementedN(R(Rtstream((s2/usr/lib/python2.7/site-packages/configargparse.pytparseMscCstd��dS(s�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 of items to be converted to the config
file
format. Keys should be strings, and values should be either
strings
or lists.
Returns:
Contents of config file as a string
sserialize(..) not
implementedN(R(Rtitems((s2/usr/lib/python2.7/site-packages/configargparse.pyt serialize^s(RRRRRR(((s2/usr/lib/python2.7/site-packages/configargparse.pyREs tConfigFileParserExceptioncBseZdZRS(s'Raised
when config file parsing
failed.(RRR(((s2/usr/lib/python2.7/site-packages/configargparse.pyRmstDefaultConfigFileParsercBs)eZdZd�Zd�Zd�ZRS(s�Based
on a simplified subset of INI and YAML formats. Here is the
supported syntax:
# this is a comment
; this is also a comment (.ini style)
--- # lines that start with --- are ignored (yaml style)
-------------------
[section] # .ini-style section names are treated as comments
# how to specify a key-value pair (all of these are equivalent):
name value # key is case sensitive: "Name" isn't
"name"
name = value # (.ini style) (white space is ignored, so name =
value same as name=value)
name: value # (yaml style)
--name value # (argparse style)
# how to set a flag arg (eg. arg which has
action="store_true")
--name
name
name = True # "True" and "true" are the same
# how to specify a list arg (eg. arg which has
action="append")
fruit = [apple, orange, lemon]
indexes = [1, 12, 35 , 40]
cCs
d}|S(NsrConfig file syntax allows: key=value, flag=true, stuff=[a,b,c]
(for details, see syntax at
https://goo.gl/R74nmi).((Rtmsg((s2/usr/lib/python2.7/site-packages/configargparse.pyR�sc
Cs�t�}x�t|�D]z\}}|j�}|s|ddks|jd�rZqnd}d}|d|d }|d
}tjd||d|�} | r�| jd
�}d||<qntjd|||d|�}
|
rk|
jd
�}|
jd�}|jd�r[|jd�r[g|dd!jd�D]}|j�^q@}n|||<qnt d|t
|dd�|f��qW|S(s,Parses the keys + values from a config
file.it#t;t[s---s\s*s(?P<key>[^:=;#\s]+?)s[:=\s]s(?P<value>.+?)s(?P<comment>\s[;#].*)?t^t$tkeyttruetvaluet]ii����t,sUnexpected
line %s in %s: %sR
R(R!R"R#(Rt enumeratetstript
startswithtretmatchtgrouptendswithtsplitRtgetattr(RRRtitlinetwhite_spaceR&R(tcommenttkey_only_matchtkey_value_matchtelem((s2/usr/lib/python2.7/site-packages/configargparse.pyR�s2 &
"2
cCs|t�}xf|j�D]X\}}t|�tkrWddjtt|��d}n|jd||f�qW|j�S(s�Does
the inverse of config parsing by taking parsed values and
converting them back to a string representing config file contents.
R#s, R)s%s = %s
( RRttypetlisttjointmaptstrtwritetgetvalue(RRtrR&R(((s2/usr/lib/python2.7/site-packages/configargparse.pyR�s #(RRRRRR(((s2/usr/lib/python2.7/site-packages/configargparse.pyRqs #tYAMLConfigFileParsercBs5eZdZd�Zd�Zd�Zed�ZRS(sdParses
YAML config files. Depends on the PyYAML module.
https://pypi.python.org/pypi/PyYAML
cCs
d}|S(NsThe config file uses YAML syntax and must represent a YAML
'mapping' (for details, see
http://learn.getgrav.org/advanced/yaml).((RR
((s2/usr/lib/python2.7/site-packages/configargparse.pyR�scCs4yddl}Wntk
r/td��nX|S(smlazy-import PyYAML so that configargparse
doesn't have to dependend
on it unless this parser is used.i����NsJCould not import
yaml. It can be installed by running 'pip install
PyYAML'(tyamltImportErrorR(RRD((s2/usr/lib/python2.7/site-packages/configargparse.pyt
_load_yaml�s
cCs�|j�}y|j|�}Wn#tk
rD}td|��nXt|�tkr�tdt|dd�t|�jf��nt�}xI|j �D];\}}t|�t
kr�|||<q�t|�||<q�W|S(s.Parses the keys and values
from a config file.sCouldn't parse config file: %ss�The config file
doesn't appear to contain 'key: value' pairs (aka. a YAML
mapping). yaml.load('%s') returned type '%s' instead of
'dict'.R
R(RFt safe_loadt ExceptionRR;tdictR3RRRR<R?(RRRDt
parsed_objtetresultR&R(((s2/usr/lib/python2.7/site-packages/configargparse.pyR�s(
cCs+|j�}t|�}|j|d|�S(s�Does
the inverse of config parsing by taking parsed values and
converting them back to a string representing config file contents.
Args:
default_flow_style: defines serialization format (see PyYAML
docs)
tdefault_flow_style(RFRItdump(RRRMRD((s2/usr/lib/python2.7/site-packages/configargparse.pyR�s (RRRRRFRtFalseR(((s2/usr/lib/python2.7/site-packages/configargparse.pyRC�s
tcommand_linetenvironment_variablestconfig_filetdefaultsRcBs�eZdZdddddgejddddeeedgeegedgded�Z ddde
jd�Zddde
jd�Z
d�Zd �Zd
�Zd�Zd�Zd
�Zejd�Zd�ZRS(s�Drop-in replacement
for argparse.ArgumentParser that adds support for
environment variables and .ini or .yaml-style config files.
t-terrorsconfig file pathsftakes the current command line args and
writes them out to a config file at the given path, then
exitscCs'|
|_||_||_td�t�j�D��}tjdkr_d|kr_|d=ntjdkr{||d<ntj j
||�|dkr�t�|_
n|�|_
||_||_|r�|jddd|d |d
t|�n|r#|jdddd
d |dt|�ndS(s/
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)
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.
Also, shell * syntax can be used to specify all conf files
in a
directory. For exmaple:
["/etc/conf/app_config.ini",
"/etc/conf/conf-enabled/*.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()
config_file_parser_class: configargparse.ConfigFileParser
subclass
which determines the config file format. configargparse
comes
with DefaultConfigFileParser and YAMLConfigFileParser.
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.
allow_abbrev: Allows long options to be abbreviated if the
abbreviation is unambiguous. Default: True
css-|]#\}}|d
kr||fVqdS(tprogtusagetdescriptiontepilogtversiontparentsRtprefix_charstfromfile_prefix_charstargument_defaultRtadd_helpN(sprogsusagesdescriptionsepilogsversionsparentssformatter_classsprefix_charssfromfile_prefix_charssargument_defaultsconflict_handlersadd_help((t.0tktv((s2/usr/lib/python2.7/site-packages/configargparse.pys <genexpr>fsiRZitallow_abbrevtdestRRtrequiredthelptis_config_file_argt"write_out_config_file_to_this_pathtmetavartCONFIG_OUTPUT_PATHtis_write_out_config_file_argN(ii(ii(t_add_config_file_helpt_add_env_var_helpt_auto_env_var_prefixRItlocalsRtsystversion_infoR
Rt__init__RRt_config_file_parsert_default_config_filest
_ignore_unknown_config_file_keystadd_argumenttTrue(RRVRWRXRYRZR[RR\R]R^RR_tadd_config_file_helptadd_env_var_helptauto_env_var_prefixtdefault_config_filestignore_unknown_config_file_keystconfig_file_parser_classtargs_for_setting_config_pathtconfig_arg_is_requiredtconfig_arg_help_messaget
args_for_writing_out_config_filet&write_out_config_file_arg_help_messageRctkwargs_for_super((s2/usr/lib/python2.7/site-packages/configargparse.pyRrs0U
c CsQ|jd|d|d|d|�\}}|rM|jddj|��n|S(sTSupports
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.
targst namespacetconfig_file_contentstenv_varssunrecognized
arguments: %st
(tparse_known_argsRUR=(RR�R�R�R�targv((s2/usr/lib/python2.7/site-packages/configargparse.pyt
parse_args�s
c"s%|dkrtjd}n-t|�tkr=|j�}nt|�}t�}xu|D]m}|r�|d�jkr�d|kr�|jdd�\}}|j|�|j|�qY|j|�qYW|}x�j D]} | j
| _q�Wt��_
|r,dt|�f}
i|
d6�j
t<n�jdk r�x��j D]�} �j| �}|rE| jp�| jp�| jp�| jp�t| �tjkrE|dj�j�}�j|jdd�j�| _qEqEWng}
g�j D]A} | jr�| jr�| j|kr�t|| j
�r�| ^q�}x:|D]2}|j}||}|
�j|||�7}
q:W|
|}|
r�tg|D]"} | j| || jff^q���j
t<ntd��j D��}|o�d|kp�d |k}t�fd
��j D��}g}|rBt|�}d|_|g}n|sZ�j
|�}nx^t!|�D]P}z=y�j"j#|�}Wn t$k
r�}�j%|�nXWdt&|d
�r�|j'�nXg}x�|j(�D]�\}}||kr||}t||j
�}n'd}�j)p8t|�j*|��}|s�|�j|||�7}dt+|jf}|�j
kr�t��j
|<n||f�j
||<q�q�W||}qgWt�}x��j D]�}|jp�|j,t-t.gk}t||j
�s�|s�|j/dks�|j/t0ks�t|�t1krBq�q�|j
r[|j
d}n |j2}|t|j/�f||<q�W|r�|�j
t3<ntj4j5�d|d|�\}}g�j D]} t6| dt7�r�| ^q�}|rg}x�|D]y}t6||j2d�}|r�y)t8|d��}
|j|�WdQXWqut9k
rq}t:d||f��quXq�q�W|r�j;�j
|�}�j"j<|�}!x3|D]+}t8|d��}
|
j=|!�WdQXq�Wt>|�dkr�|d}n�j?ddt|��qn||fS(sTSupports
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.
iit=tRTt_css*|] }t|�tjkr|VqdS(N(R;R
t_HelpAction(R`ta((s2/usr/lib/python2.7/site-packages/configargparse.pys <genexpr>�ss-hs--helpc3s1|]'}�j|�D]}||fVqqdS(N(tget_possible_config_keys(R`tactiont
config_key(R(s2/usr/lib/python2.7/site-packages/configargparse.pys <genexpr>�ss
method argNtcloses%s|%si����R�R�Rktws Couldn't open %s
for writing: %ssWrote config file to
(@RRpR�R;R?R2R<R\tappendt_actionstoption_stringstis_positional_argRt_source_to_settingst_COMMAND_LINE_SOURCE_KEYRnR�tenv_varRgRkR
R�R,treplacetuppertalready_on_command_linet
convert_item_to_command_line_argt_ENV_VAR_SOURCE_KEYtanyRIRR
t_open_config_filestreversedRsRRRUthasattrR�RRut4get_command_line_key_for_unknown_config_file_settingt_CONFIG_FILE_SOURCE_KEYtnargstOPTIONALtZERO_OR_MORERtSUPPRESSt#ACTION_TYPES_THAT_DONT_NEED_A_VALUERdt_DEFAULTS_SOURCE_KEYRR�R3ROtopentIOErrorRt
get_items_for_config_file_outputRR@Rtexit("RR�R�R�R�tnormalized_argstargR&R(R�ta_v_pairtconfig_file_keyststripped_config_file_keytenv_var_argstactions_with_env_var_valuesR�tsupports_help_argtskip_config_file_parsingtknown_config_keystconfig_streamsRtconfig_itemsRKtconfig_argstdiscard_this_keyt
source_keytdefault_settingstcares_about_default_valuetunknown_argst&user_write_out_config_file_arg_actionstoutput_file_pathstoutput_file_pathtoutput_filet
file_contents((Rs2/usr/lib/python2.7/site-packages/configargparse.pyR��s�
%
&"
9
cCs+|j|j�}|jdd|}|S(sCompute 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.
ii(R,R\(RR&tkey_without_prefix_charstcommand_line_key((s2/usr/lib/python2.7/site-packages/configargparse.pyR�KscCs!t�}x|j�D]\}}|tkr�|d\}}x�|jD]�}|j|�} | rH|jrHt||j�rHt||j d�}
|
dk r�t|
�tkr�t
|
�j�}
n|
|| d<q�qHqHWq|tkr^x(|j�D]\\}\}}
|j|�} | r�t||j d�}
|
dk rW|
|| d<qWq�q�Wq|jt�r�x�|j�D]\}\}}
|
||<qzWq|tkrxm|j�D]\\}\}}
|j|�} | r�t||j d�}
|
dk r|
|| d<qq�q�WqqW|S(s�Converts the given settings back to
a dictionary that can be passed
to ConfigFormatParser.serialize(..).
Args:
source_to_settings: the dictionary described in
parse_known_args()
parsed_namespace: namespace object created within
parse_known_args()
Returns:
an OrderedDict where keys are strings and values are either
strings
or lists
R�iN(RRR�R�R�R�R�R�R3RdRR;tboolR?tlowerR�R-R�R�(Rtsource_to_settingstparsed_namespacetconfig_file_itemstsourcetsettingsR�texisting_command_line_argsR�R�R(R&((s2/usr/lib/python2.7/site-packages/configargparse.pyR�Xs@ c Cs�g}|dkr$|j|�}n
|jd}|dk r�t|�tkr�|j�d
krq|j|�q�|jd||f�nHt|�tkr�|dks�t|�t j
kr�x�|D]&}|j|�|jt|��q�Wq�t|�t jkr|j
dks:t|j
�tkrn|j
d krn|j|�x;|D]}|jt|��qNWq�|jd
||f�nKt|�tkr�|j|�|j|�ntdt|�|f��|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 argparse Action object for this setting, or None if
this
config file setting doesn't correspond to any defined
configargparse arg.
key: string (config file key or env var name)
value: parsed value of type string or list
i����R'tfalsetyestnosHUnexpected value for %s:
'%s'. Expecting 'true', 'false',
'yes', or 'no't+t*isp%s can't be set to a list
'%s' unless its action type is changed to 'append' or
nargs is set to '*', '+', or > 1s&Unexpected
value type %s for value:
%sN(strueR�syesR�(R�R�(RR�R�R;R�R�R�RUR<R
t
_AppendActionR?t_StoreActionR�tintR(RR�R&R(R�R�t list_elem((s2/usr/lib/python2.7/site-packages/configargparse.pyR��s6
!
$$
cCsdg}xW|jD]L}tg|jD]}|jd|�^q#�r||d|g7}qqW|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(R�R�R\R-(RR�tkeysR�tc((s2/usr/lib/python2.7/site-packages/configargparse.pyR��s
/cCssgttjttjj|j��D]}|D]}t|�^q/q%}g|jD]}t|dt �rT|^qT}|s�|Sx�|D]�}t
jd|jdt �}|j
|�d�} tj| |�|_|jd|�}
|
s�q�n|
\}}t||jd�}
|
s
q�ntjj|
�}
tjj|
�sX|jd|
�n|t|
�g7}q�W|S(sjTries
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)
RgR\R_cSsdS(N((Rtmessage((s2/usr/lib/python2.7/site-packages/configargparse.pyterror_method�sR�sFile
not found: %sN(R>tglobtostpatht
expanduserRtR�R�R3ROR
RR\t_add_actionttypest
MethodTypeRUR�RdRtisfile(Rtcommand_line_argstfilestftconfig_filesR�tuser_config_file_arg_actionsR�t
arg_parserR�t
parsed_argR�R�tuser_config_file((s2/usr/lib/python2.7/site-packages/configargparse.pyR��s0
+.
cCs)idt6dt6dt6dt6}t�}x�|jj�D]�\}}|jd�}||dt|d�}|j |�x�|j�D]�\}\}}|r�|j d|d |f�q�t
|�tkr�|j d
|�q�t
|�tkr�|j d
dj
|��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)
sCommand Line Args: sEnvironment Variables:
sConfig File (%s):
s
Defaults:
t|iis
%-19s%s
t:s %s
R�(R�R�R�R�RR�RR2ttupleR@R;R?R<R=RA(Rtsource_key_to_display_value_mapRBR�R�R&R�R(((s2/usr/lib/python2.7/site-packages/configargparse.pyt
format_values�s$
%cCs|j|j��dS(sBPrints the
format_values() string (to sys.stdout or another
file).N(R@R�(Rtfile((s2/usr/lib/python2.7/site-packages/configargparse.pytprint_valuesscCs�d}t}t}|jr�|j}d|jd}g|jD]S}|jD]C}|j|�rL|jdkp|jp|j rL||f^qLq?}g|jD]}t
|dt�r�|^q�} |r�|s�| r�t|_t}|d||ddf7}djd�| D��}
|
r/d |
}
n|s;|
rk|d
dj|t
td|
g���7}n|d|jj�7}q�n|jr1g|jD]'}t
|dd�r�|j|f^q�}xf|D][\}}d
|}
|js�d|_n|
|jkr�|j|
7_t}t|_q�q�Wn|s=|r�dg}|r\dg|}n|rrdg|}n|ddj|�7}n|r�|jp�dd||_ntjj|�S(NR�iiRfRgsCArgs
that start with '%s' (eg. %s) can also be set in a config files
or
css%|]}|jr|jdVqdS(iN(R�(R`R�((s2/usr/lib/python2.7/site-packages/configargparse.pys <genexpr>-ssspecified
via s (%s).R�R�s [env var: %s]RSsconfig file valuessenvironment
variablessT If an arg is specified in more than one place, then commandline
values override %s.s which override
(RORlRtR\R�R�R�RdRgRkR3RwR=R<tfilterRRsRRmR�RfRXR
Rtformat_help(RR
tadded_config_file_helptadded_env_var_helpR{tccR�R�tconfig_settable_argstconfig_path_actionstconfig_arg_stringtenv_var_actionsR�tenv_var_help_stringt
value_sources((s2/usr/lib/python2.7/site-packages/configargparse.pyR�s` +
! '
N(RRRRR
t
HelpFormatterRwRORRrR�tenvironR�R�R�R�R�R�R�R�RptstdoutR�R�(((s2/usr/lib/python2.7/site-packages/configargparse.pyRsJZ�
. /
7 cOs$|jdd
�}|jdd
�p3|jdd
�}|jdd
�}|j||�}|j|_||_||_||_|jr�|r�td��n|jr�t |�t
jkr�td��n|jr d}t |�t
jkrt|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
R�Rgtis_config_fileRks*env_var can't be set for a positional
arg.s9arg with is_config_file_arg=True must have
action='store's+arg with is_write_out_config_file_arg=True smust
have action='store's'can't also have
is_config_file_arg=TrueN(tpopRtoriginal_add_argument_methodR�R�R�RgRkRR;R
R�(RR�RR�RgRkR�terror_prefix((s2/usr/lib/python2.7/site-packages/configargparse.pyRvQs,
cst�fd�|D��S(ssUtility
method for checking if any of the potential_command_line_args is
already present in existing_args.
c3s|]}|�kVqdS(N((R`t
potential_arg(texisting_args_list(s2/usr/lib/python2.7/site-packages/configargparse.pys <genexpr>�s(R�(R
tpotential_command_line_args((R
s2/usr/lib/python2.7/site-packages/configargparse.pyR��s(FR
R�R�R.RpR�RqtioRtordereddictRtcollectionstsett_StoreTrueActiont_StoreFalseActiont_CountActiont_StoreConstActiont_AppendConstActionR�RRRRRtRawTextHelpFormattertRawDescriptionHelpFormatterRtobjectRRHRRRCR�R�R�R�RRvR�t_ActionsContainerRRt
ArgumentErrortArgumentTypeErrortActiontFileTypet NamespacetONE_OR_MORER�t REMAINDERR�R�tinitArgumentParsertgetArgumentParsertgetArgParsert getParsertget_arg_parsert
get_parsert ArgParsertParsertadd_argtaddR�RR�tparse_knowntRawFormattertDefaultsFormattertDefaultsRawFormatter(((s2/usr/lib/python2.7/site-packages/configargparse.pyt<module>s� (Q?��L 6