%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/
Upload File :
Create Path :
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/argparse.pyc

�
��Mc@s`dZdZdddddddd	d
ddd
ddddgZddlZddlZddlZddl	Z
ddlZddl
m
ZyeWn!ek
r�ddlmZnXyeWnek
r�eZnXyeWnek
red�ZnXd�ZdZdZdZdZdZdZdZdefd ��YZ d!�Z!defd"��YZ"de"fd#��YZ#d	e#fd$��YZ$de"fd%��YZ%d&�Z&de'fd'��YZ(de'fd(��YZ)de fd)��YZ*d*e*fd+��YZ+d,e*fd-��YZ,d.e,fd/��YZ-d0e,fd1��YZ.d2e*fd3��YZ/d4e*fd5��YZ0d6e*fd7��YZ1d8e*fd9��YZ2d:e*fd;��YZ3d<e*fd=��YZ4defd>��YZ5d
e fd?��YZ6d@efdA��YZ7dBe7fdC��YZ8dDe8fdE��YZ9de e7fdF��YZ:dS(Gs�
Command-line parsing library

This module is an optparse-inspired command-line parsing library that:

    - handles both optional and positional arguments
    - produces highly informative usage messages
    - supports parsers that dispatch to sub-parsers

The following is a simple usage example that sums integers from the
command-line and writes the result to a file::

    parser = argparse.ArgumentParser(
        description='sum the integers at the command line')
    parser.add_argument(
        'integers', metavar='int', nargs='+', type=int,
        help='an integer to be summed')
    parser.add_argument(
        '--log', default=sys.stdout, type=argparse.FileType('w'),
        help='the file where the sum should be written')
    args = parser.parse_args()
    args.log.write('%s' % sum(args.integers))
    args.log.close()

The module contains the following public classes:

    - ArgumentParser -- The main entry point for command-line parsing. As the
        example above shows, the add_argument() method is used to populate
        the parser with actions for optional and positional arguments. Then
        the parse_args() method is invoked to convert the args at the
        command-line into an object with attributes.

    - ArgumentError -- The exception raised by ArgumentParser objects when
        there are errors with the parser's actions. Errors raised while
        parsing the command-line are caught by ArgumentParser and emitted
        as command-line messages.

    - FileType -- A factory for defining types of files to be created. As the
        example above shows, instances of FileType are typically passed as
        the type= argument of add_argument() calls.

    - Action -- The base class for parser actions. Typically actions are
        selected by passing strings like 'store_true' or 'append_const' to
        the action= argument of add_argument(). However, for greater
        customization of ArgumentParser actions, subclasses of Action may
        be defined and passed as the action= argument.

    - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter,
        ArgumentDefaultsHelpFormatter -- Formatter classes which
        may be passed as the formatter_class= argument to the
        ArgumentParser constructor. HelpFormatter is the default,
        RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser
        not to change the formatting for help text, and
        ArgumentDefaultsHelpFormatter adds information about argument defaults
        to the help.

All other classes in this module are considered implementation details.
(Also note that HelpFormatter and RawDescriptionHelpFormatter are only
considered public as object names -- the API of the formatter objects is
still considered an implementation detail.)
s1.2.1tArgumentParsert
ArgumentErrortArgumentTypeErrortFileTypet
HelpFormattertArgumentDefaultsHelpFormattertRawDescriptionHelpFormattertRawTextHelpFormattert	NamespacetActiontONE_OR_MOREtOPTIONALtPARSERt	REMAINDERtSUPPRESStZERO_OR_MOREi����N(tgettext(tSetcCs-t|�}|j�|r)|j�n|S(N(tlisttsorttreverse(titerableRtresult((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytsortedls


cCst|d�pt|d�S(Nt__call__t	__bases__(thasattr(tobj((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt	_callabletss==SUPPRESS==t?t*t+sA...s...t_unrecognized_argst_AttributeHoldercBs)eZdZd�Zd�Zd�ZRS(sAbstract base class that provides __repr__.

    The __repr__ method returns a string in the format::
        ClassName(attr=name, attr=name, ...)
    The attributes are determined either by a class-level attribute,
    '_kwarg_names', or by inspecting the instance __dict__.
    cCs�t|�j}g}x'|j�D]}|jt|��q"Wx1|j�D]#\}}|jd||f�qLWd|dj|�fS(Ns%s=%rs%s(%s)s, (ttypet__name__t	_get_argstappendtreprt_get_kwargstjoin(tselft	type_nametarg_stringstargtnametvalue((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__repr__�scCst|jj��S(N(Rt__dict__titems(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR'�scCsgS(N((R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR$�s(R#t
__module__t__doc__R/R'R$(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR!�s			cCs8t||d�dkr+t|||�nt||�S(N(tgetattrtNonetsetattr(t	namespaceR-R.((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
_ensure_value�scBseZdZdddd�Zd�Zd�Zdefd��YZd�Z	d	�Z
d
�Zd�Zdd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(s�Formatter for generating usage messages and argument help strings.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    iicCs�|dkrPyttjd�}Wnttfk
rBd}nX|d8}n||_||_||_||_	d|_
d|_d|_|j
|d�|_|j|_tjd�|_tjd�|_dS(NtCOLUMNSiPiis\s+s\n\n\n+(R5tintt_ostenvirontKeyErrort
ValueErrort_progt_indent_incrementt_max_help_positiont_widtht_current_indentt_levelt_action_max_lengtht_Sectiont
_root_sectiont_current_sectiont_retcompilet_whitespace_matchert_long_break_matcher(R)tprogtindent_incrementtmax_help_positiontwidth((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__init__�s"

							cCs%|j|j7_|jd7_dS(Ni(RCR@RD(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_indent�scCs@|j|j8_|jdks-td��|jd8_dS(NisIndent decreased below 0.i(RCR@tAssertionErrorRD(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_dedent�sRFcBseZdd�Zd�ZRS(cCs(||_||_||_g|_dS(N(t	formattertparenttheadingR1(R)RURVRW((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�s			cCs|jdk	r|jj�n|jj}x!|jD]\}}||�q5W|g|jD]\}}||�^q\�}|jdk	r�|jj�n|s�dS|jtk	r�|jdk	r�|jj	}d|d|jf}nd}|d||dg�S(Nts%*s%s:
s
(
RVR5RURRt_join_partsR1RTRWRRC(R)R(tfunctargst	item_helptcurrent_indentRW((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytformat_help�s.N(R#R2R5RQR^(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRF�scCs|jjj||f�dS(N(RHR1R%(R)RZR[((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt	_add_item�scCsB|j�|j||j|�}|j|jg�||_dS(N(RRRFRHR_R^(R)RWtsection((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
start_section�s
cCs|jj|_|j�dS(N(RHRVRT(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytend_sectionscCs5|tk	r1|dk	r1|j|j|g�ndS(N(RR5R_t_format_text(R)ttext((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytadd_text	scCs8|tk	r4||||f}|j|j|�ndS(N(RR_t
_format_usage(R)tusagetactionstgroupstprefixR[((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt	add_usage
scCs�|jtk	r�|j}||�g}x*|j|�D]}|j||��q7Wtg|D]}t|�^q^�}||j}t|j|�|_|j	|j
|g�ndS(N(thelpRt_format_action_invocationt_iter_indented_subactionsR%tmaxtlenRCRER_t_format_action(R)tactiontget_invocationtinvocationst	subactiontstinvocation_lengtht
action_length((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytadd_arguments	%
	cCs"x|D]}|j|�qWdS(N(Ry(R)RhRr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
add_arguments$s
cCsD|jj�}|r@|jjd|�}|jd�d}n|S(Ns

s
(RGR^RLtsubtstrip(R)Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR^+s
cCs2djg|D]}|r
|tk	r
|^q
�S(NRX(R(R(R)tpart_stringstpart((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRY2s	
cs|dkrtd�}n|dk	r@|td|j�}n�|dkrl|rldtd|j�}n�|dkr
dtd|j�}g}g}x4|D],}|jr�|j|�q�|j|�q�W|j}	|	|||�}
djg||
gD]}|r|^q�}|j|j	�t
|�t
|��kr
d}|	||�}
|	||�}tj||
�}tj||�}dj|�|
ks�t
�dj|�|ks�t
�d�fd�}t
|�t
|�d�kr{dt
|�t
|�d}|rM||g|||�}|j|||��q�|ro||g|||�}q�|g}n}dt
|�}||}|||�}t
|�dkr�g}|j|||��|j|||��n|g|}d	j|�}q
nd
||fS(Nsusage: RMs%(prog)st s\(.*?\)+|\[.*?\]+|\S+csg}g}|dk	r+t|�d}nt|�d}x||D]t}|dt|��kr�|j|dj|��g}t|�d}n|j|�|t|�d7}qBW|r�|j|dj|��n|dk	r|dt|�|d<n|S(NiRi(R5RpR%R((tpartstindentRjtlinestlinetline_lenR~(t
text_width(s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt	get_linescs"

g�?is
s%s%s

(R5t_tdictR?toption_stringsR%t_format_actions_usageR(RBRCRpRItfindallRStextend(R)RgRhRiRjRMt	optionalstpositionalsRrtformattaction_usageRvtpart_regexpt	opt_usaget	pos_usaget	opt_partst	pos_partsR�R�R�R�((R�s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRf7sZ
		. 

cCs�t�}i}x&|D]}y|j|jd�}Wntk
rLqqX|t|j�}|||!|jkrx|jD]}|j|�q�W|js�||kr�||cd7<n
d||<d||<n3||kr�||cd7<n
d||<d||<x(t|d|�D]}	d	||	<qWqqWg}
x�t|�D]t\}	}|j	t
kr�|
jd�|j
|	�d	kr�|j|	�q�|j
|	d�d	kr�|j|	d�q�qK|js5|j||j�}||kr%|ddkr%|d
dkr%|dd
!}q%n|
j|�qK|jd}|jdkr^d|}n1|jj�}
|j||
�}d||f}|jr�||kr�d
|}n|
j|�qKWx.t|dt�D]}	||	g|
|	|	+q�Wdjg|
D]}|dk	r|^q�}d}d}tjd|d|�}tjd|d|�}tjd||fd|�}tjdd|�}|j�}|S(Nis [t[t]s (t(t)it|i����s%ss%s %ss[%s]RRs[\[(]s[\])]s(%s) s\1s (%s)s%s *%sRXs\(([^|]*)\)(tsettindext_group_actionsR>Rptaddtrequiredtranget	enumerateRlRR%R5tgettpopR�t_format_argstdesttnargstupperRtTrueR(RIR{R|(R)RhRit
group_actionstinsertstgrouptstarttendRrtiR�R~t
option_stringtdefaulttargs_stringtitemRdtopentclose((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��sp	

	




	 


.cCsYd|kr%|td|j�}n|j|j}d|j}|j|||�dS(Ns%(prog)RMRs

(R�R?RBRCt
_fill_text(R)RdR�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRc�s

c
Cs�t|jd|j�}|j|}||jd}|j|�}|jsn|jd|f}d|}n\t|�|kr�|jd||f}d|}d}n"|jd|f}d|}|}|g}|jrM|j|�}	|j	|	|�}
|j
d|d|
df�xN|
dD] }|j
d|d|f�q&Wn|jd�sl|j
d�nx-|j|�D]}|j
|j
|��q|W|j|�S(NiRXs%*s%s
s	%*s%-*s  iis
(tminRERARBRCRmRlRpt_expand_helpt_split_linesR%tendswithRnRqRY(
R)Rrt
help_positiont
help_widthtaction_widtht
action_headerttuptindent_firstR�t	help_textt
help_linesR�Ru((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRq�s6

	

	
		!cCs�|js+|j||j�d�\}|Sg}|jdkrS|j|j�nL|jj�}|j||�}x(|jD]}|jd||f�q~Wdj|�SdS(Niis%s %ss, (	R�t_metavar_formatterR�R�R�R�R�R%R((R)RrtmetavarR�R�R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRm)s	cs{|jdk	r|j�nM|jdk	rbg|jD]}t|�^q4}ddj|��n|��fd�}|S(Ns{%s}t,cs"t�t�r�S�f|SdS(N(t
isinstancettuple(t
tuple_size(R(s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�Is(R�R5tchoiceststrR((R)Rrtdefault_metavartchoicetchoice_strsR�((Rs9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�@s"cCs|j||�}|jdkr4d|d�}n�|jtkrVd|d�}n�|jtkrxd|d�}n�|jtkr�d|d�}nx|jtkr�d}n`|jtkr�d|d�}n>gt|j�D]}d^q�}d	j	|�||j�}|S(
Ns%sis[%s]s
[%s [%s ...]]is%s [%s ...]s...s%s ...R(
R�R�R5RRR
R
RR�R((R)RrR�tget_metavarRR�tformats((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�Ps 	"cCs�tt|�d|j�}x.t|�D] }||tkr(||=q(q(Wx;t|�D]-}t||d�rY||j||<qYqYW|jd�dk	r�dj	g|dD]}t
|�^q��}||d<n|j|�|S(NRMR#R�s, (R�tvarsR?RRRR#R�R5R(R�t_get_help_string(R)RrtparamsR-tctchoices_str((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�cs,
ccsRy
|j}Wntk
r n.X|j�x|�D]}|Vq5W|j�dS(N(t_get_subactionstAttributeErrorRRRT(R)Rrtget_subactionsRu((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRnps


	cCs+|jjd|�j�}tj||�S(NR(RKR{R|t	_textwraptwrap(R)RdRP((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�{scCs7|jjd|�j�}tj||d|d|�S(NRtinitial_indenttsubsequent_indent(RKR{R|R�tfill(R)RdRPR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�scCs|jS(N(Rl(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��sN(R#R2R3R5RQRRRTtobjectRFR_RaRbReRkRyRzR^RYRfR�RcRqRmR�R�R�RnR�R�R�(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s8		!									\	`		/				
			cBseZdZd�ZRS(s�Help message formatter which retains any formatting in descriptions.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCs-djg|jt�D]}||^q�S(NRX(R(t
splitlinesR�(R)RdRPR�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s(R#R2R3R�(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�scBseZdZd�ZRS(s�Help message formatter which retains formatting of all help text.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCs
|j�S(N(R�(R)RdRP((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s(R#R2R3R�(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�scBseZdZd�ZRS(s�Help message formatter which adds default values to argument help.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    cCsb|j}d|jkr^|jtk	r^ttg}|jsK|j|kr[|d7}q[q^n|S(Ns
%(default)s (default: %(default)s)(RlR�RRRR�R�(R)RrRltdefaulting_nargs((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s	(R#R2R3R�(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�scCsi|dkrdS|jr)dj|j�S|jdtfkrE|jS|jdtfkra|jSdSdS(Nt/(R5R�R(R�RR�(targument((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_get_action_name�s	cBs eZdZd�Zd�ZRS(s�An error from creating or using an argument (optional or positional).

    The string value of this exception is the message, augmented with
    information about the argument that caused it.
    cCst|�|_||_dS(N(R�t
argument_nametmessage(R)R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCs;|jdkrd}nd}|td|jd|j�S(Ns%(message)ss'argument %(argument_name)s: %(message)sR�R�(R�R5R�R�(R)R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__str__�s
	(R#R2R3RQR�(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s	cBseZdZRS(s@An error from trying to convert a command line string to a type.(R#R2R3(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�sc	BsDeZdZdddddeddd�Zd�Zdd�ZRS(sd	Information about how to convert command line strings to Python objects.

    Action objects are used by an ArgumentParser to represent the information
    needed to parse a single argument from one or more strings from the
    command line. The keyword arguments to the Action constructor are also
    all attributes of Action instances.

    Keyword Arguments:

        - option_strings -- A list of command-line option strings which
            should be associated with this action.

        - dest -- The name of the attribute to hold the created object(s)

        - nargs -- The number of command-line arguments that should be
            consumed. By default, one argument will be consumed and a single
            value will be produced.  Other values include:
                - N (an integer) consumes N arguments (and produces a list)
                - '?' consumes zero or one arguments
                - '*' consumes zero or more arguments (and produces a list)
                - '+' consumes one or more arguments (and produces a list)
            Note that the difference between the default and nargs=1 is that
            with the default, a single value will be produced, while with
            nargs=1, a list containing a single value will be produced.

        - const -- The value to be produced if the option is specified and the
            option uses an action that takes no values.

        - default -- The value to be produced if the option is not specified.

        - type -- The type which the command-line arguments should be converted
            to, should be one of 'string', 'int', 'float', 'complex' or a
            callable object that accepts a single string argument. If None,
            'string' is assumed.

        - choices -- A container of values that should be allowed. If not None,
            after a command-line argument has been converted to the appropriate
            type, an exception will be raised if it is not a member of this
            collection.

        - required -- True if the action must always be specified at the
            command line. This is only meaningful for optional command-line
            arguments.

        - help -- The help string describing the argument.

        - metavar -- The name to be used for the option's argument with the
            help string. If None, the 'dest' value will be used as the name.
    cCs^||_||_||_||_||_||_||_||_|	|_|
|_	dS(N(
R�R�R�tconstR�R"R�R�RlR�(R)R�R�R�R�R�R"R�R�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQs									c	CsGddddddddd	g	}g|D]}|t||�f^q(S(
NR�R�R�R�R�R"R�RlR�(R4(R)tnamesR-((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR'&s	cCsttd���dS(Ns.__call__() not defined(tNotImplementedErrorR�(R)tparserR7tvaluesR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR4sN(R#R2R3R5tFalseRQR'R(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR	�s1	t_StoreActionc	Bs5eZdddddeddd�Zdd�ZRS(cCs�|dkrtd��n|dk	rF|tkrFtdt��ntt|�jd|d|d|d|d|d	|d
|d|d|	d
|
�
dS(Nis�nargs for store actions must be > 0; if you have nothing to store, actions such as store true or store const may be more appropriates nargs must be %r to supply constR�R�R�R�R�R"R�R�RlR�(R>R5RtsuperR�RQ(R)R�R�R�R�R�R"R�R�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ:scCst||j|�dS(N(R6R�(R)R�R7R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRWsN(R#R2R5R�RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�8st_StoreConstActioncBs)eZdeddd�Zdd�ZRS(cCsAtt|�jd|d|ddd|d|d|d|�dS(	NR�R�R�iR�R�R�Rl(R�R�RQ(R)R�R�R�R�R�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ]scCst||j|j�dS(N(R6R�R�(R)R�R7R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRnsN(R#R2R5R�RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�[s

t_StoreTrueActioncBseZeedd�ZRS(c
Cs;tt|�jd|d|dtd|d|d|�dS(NR�R�R�R�R�Rl(R�R�RQR�(R)R�R�R�R�Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQtsN(R#R2R�R5RQ(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�rst_StoreFalseActioncBseZeedd�ZRS(c
Cs;tt|�jd|d|dtd|d|d|�dS(NR�R�R�R�R�Rl(R�R�RQR�(R)R�R�R�R�Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�sN(R#R2R�R�R5RQ(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��st
_AppendActionc	Bs5eZdddddeddd�Zdd�ZRS(cCs�|dkrtd��n|dk	rF|tkrFtdt��ntt|�jd|d|d|d|d|d	|d
|d|d|	d
|
�
dS(Nis�nargs for append actions must be > 0; if arg strings are not supplying the value to append, the append const action may be more appropriates nargs must be %r to supply constR�R�R�R�R�R"R�R�RlR�(R>R5RR�R�RQ(R)R�R�R�R�R�R"R�R�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCsBtjt||jg��}|j|�t||j|�dS(N(t_copytcopyR8R�R%R6(R)R�R7R�R�R1((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s
N(R#R2R5R�RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��st_AppendConstActioncBs)eZdeddd�Zdd�ZRS(cCsGtt|�jd|d|ddd|d|d|d|d	|�dS(
NR�R�R�iR�R�R�RlR�(R�R�RQ(R)R�R�R�R�R�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCsEtjt||jg��}|j|j�t||j|�dS(N(R�R�R8R�R%R�R6(R)R�R7R�R�R1((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�sN(R#R2R5R�RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s
t_CountActioncBs&eZdedd�Zdd�ZRS(c
Cs;tt|�jd|d|ddd|d|d|�dS(NR�R�R�iR�R�Rl(R�R�RQ(R)R�R�R�R�Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCs0t||jd�d}t||j|�dS(Nii(R8R�R6(R)R�R7R�R�t	new_count((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�sN(R#R2R5R�RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s	t_HelpActioncBs&eZeedd�Zdd�ZRS(cCs5tt|�jd|d|d|ddd|�dS(NR�R�R�R�iRl(R�R�RQ(R)R�R�R�Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCs|j�|j�dS(N(t
print_helptexit(R)R�R7R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s
N(R#R2RR5RQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��st_VersionActioncBs)eZdeedd�Zdd�ZRS(s&show program's version number and exitcCs>tt|�jd|d|d|ddd|�||_dS(NR�R�R�R�iRl(R�R�RQtversion(R)R�R�R�R�Rl((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�scCsT|j}|dkr!|j}n|j�}|j|�|jd|j��dS(NR�(R�R5t_get_formatterReR�R^(R)R�R7R�R�R�RU((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRs	
N(R#R2R5RRQR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s
	t_SubParsersActioncBsNeZdefd��YZeddd�Zd�Zd�Zdd�Z	RS(t_ChoicesPseudoActioncBseZd�ZRS(cCs2ttj|�}|jdgd|d|�dS(NR�R�Rl(R�R�R�RQ(R)R-Rltsup((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQs(R#R2RQ(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�sc
Csb||_||_i|_g|_tt|�jd|d|dtd|jd|d|�dS(NR�R�R�R�RlR�(t_prog_prefixt
_parser_classt_name_parser_mapt_choices_actionsR�R�RQR(R)R�RMtparser_classR�RlR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQs					cKs�|jd�dkr/d|j|f|d<nd|kro|jd�}|j||�}|jj|�n|j|�}||j|<|S(NRMs%s %sRl(	R�R5R�R�R�RR%RR(R)R-tkwargsRlt
choice_actionR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
add_parser1s
cCs|jS(N(R(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�Asc	Cs�|d}|d}|jtk	r9t||j|�ny|j|}WnHtk
r�|dj|j�f}td|�}t||��nX|j||�\}}|r�t	|�j
tg�t|t�j
|�ndS(Niis, sunknown parser %r (choices: %s)(R�RR6RR=R(R�Rtparse_known_argsR�t
setdefaultt_UNRECOGNIZED_ARGS_ATTRR4R�(	R)R�R7R�R�tparser_nameR+R�tmsg((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRDs


N(
R#R2R	R�RR5RQRR�R(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s
		cBs/eZdZddd�Zd�Zd�ZRS(s�Factory for creating file object types

    Instances of FileType are typically passed as type= arguments to the
    ArgumentParser add_argument() method.

    Keyword Arguments:
        - mode -- A string indicating how the file is to be opened. Accepts the
            same values as the builtin open() function.
        - bufsize -- The file's desired buffer size. Accepts the same values as
            the builtin open() function.
    trcCs||_||_dS(N(t_modet_bufsize(R)tmodetbufsize((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQns	cCs�|dkrZd|jkr"tjSd|jkr8tjStd|j�}t|��n|jryt||j|j�St||j�SdS(Nt-Rtwsargument "-" with mode %r(R
t_syststdintstdoutR�R>RR�(R)tstringR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRrs	cCs]|j|jg}djg|D]}|dk	rt|�^q�}dt|�j|fS(Ns, s%s(%s)(R
RR(R5R&R"R#(R)R[R,targs_str((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR/�s4N(R#R2R3R5RQRR/(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRas	cBs8eZdZd�ZdZd�Zd�Zd�ZRS(s�Simple object for storing attributes.

    Implements equality by attribute names and values, and provides a simple
    string representation.
    cKs)x"|D]}t||||�qWdS(N(R6(R)RR-((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�s
cCst|�t|�kS(N(R�(R)tother((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__eq__�scCs||kS(N((R)R((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__ne__�scCs
||jkS(N(R0(R)tkey((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt__contains__�sN(	R#R2R3RQR5t__hash__RRR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s			t_ActionsContainercBs�eZd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zdd
�Zd�Zd�Zd�Zd�ZRS(cCsgtt|�j�||_||_||_||_i|_|jddt
�|jddt
�|jddt�|jddt�|jddt
�|jddt�|jddt�|jddt�|jdd	t�|jdd
t�|jddt�|j�g|_i|_g|_g|_i|_tjd�|_g|_dS(
NRrtstoretstore_constt
store_truetstore_falseR%tappend_consttcountRlR�tparserss^-\d+$|^-\d*\.\d+$(R�RRQtdescriptiontargument_defaulttprefix_charstconflict_handlert_registriestregisterR5R�R�R�R�R�R�R�R�R�R�t_get_handlert_actionst_option_string_actionst_action_groupst_mutually_exclusive_groupst	_defaultsRIRJt_negative_number_matchert_has_negative_number_optionals(R)R&R(R'R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�s2					
					cCs#|jj|i�}|||<dS(N(R*R(R)t
registry_nameR.R�tregistry((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR+�scCs|j|j||�S(N(R*R�(R)R4R.R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
_registry_get�scKsJ|jj|�x3|jD](}|j|kr||j|_qqWdS(N(R1tupdateR-R�R�(R)RRr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytset_defaults�scCsLx6|jD]+}|j|kr
|jdk	r
|jSq
W|jj|d�S(N(R-R�R�R5R1R�(R)R�Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytget_default�scOsZ|j}|s6t|�dkrl|dd|krl|rWd|krWtd��n|j||�}n|j||�}d|kr�|d}||jkr�|j||d<q�|jd	k	r�|j|d<q�n|j|�}t	|�std|��n||�}|j
d|j|j�}t	|�sMtd|��n|j|�S(
s�
        add_argument(dest, ..., name=value, ...)
        add_argument(option_string, option_string, ..., name=value, ...)
        iiR�s+dest supplied twice for positional argumentR�sunknown action "%s"R"s%r is not callableN(
R(RpR>t_get_positional_kwargst_get_optional_kwargsR1R'R5t_pop_action_classRR6R"t_add_action(R)R[RtcharsR�taction_classRrt	type_func((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRy�s(		-
cOs&t|||�}|jj|�|S(N(t_ArgumentGroupR/R%(R)R[RR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytadd_argument_groupscKs#t||�}|jj|�|S(N(t_MutuallyExclusiveGroupR0R%(R)RR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytadd_mutually_exclusive_group#scCs�|j|�|jj|�||_x|jD]}||j|<q0WxB|jD]7}|jj|�rQ|js�|jjt	�q�qQqQW|S(N(
t_check_conflictR-R%t	containerR�R.R2tmatchR3R�(R)RrR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR=(s
		cCs|jj|�dS(N(R-tremove(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_remove_action=scCsOi}xO|jD]D}|j|krGtd�}t||j��n|||j<qWi}xv|jD]k}|j|kr�|jd|jd|jd|j�||j<nx"|jD]}||j||<q�WqhWxD|jD]9}|j	d|j
�}x|jD]}|||<qWq�Wx*|jD]}|j||�j
|�q(WdS(Ns.cannot merge actions - two groups are named %rttitleR&R)R�(R/RJR�R>RBR&R)R�R0RDR�R-R�R=(R)RFttitle_group_mapR�Rt	group_mapRrtmutex_group((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_add_container_actions@s,				cKs�d|kr'td�}t|��n|jd�ttgkrOt|d<n|jd�tkr}d|kr}t|d<nt|d|dg�S(NR�s1'required' is an invalid argument for positionalsR�R�R�R�(R�t	TypeErrorR�RRR�R�(R)R�RR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR:hs
!
c
OsVg}g}x�|D]�}|d|jkrZtd�}||jf}t||��n|j|�|d|jkrt|�dkr�|d|jkr�|j|�q�q�qqW|jdd�}|dkr@|r�|d}	n
|d}	|	j|j�}|s+td�}t||��n|jdd�}nt	|d|d|�S(	Nis8invalid option string %r: must start with a character %riR�s%dest= is required for options like %rRR�R�(
R(R�R>R%RpR�R5tlstriptreplaceR�(
R)R[RR�tlong_option_stringsR�RR�R�tdest_option_string((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR;xs.



cCs%|jd|�}|jd||�S(NRr(R�R6(R)RR�Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR<�scCsUd|j}yt||�SWn0tk
rPtd�}t||j��nXdS(Ns_handle_conflict_%ss%invalid conflict_resolution value: %r(R)R4R�R�R>(R)thandler_func_nameR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR,�s

cCsrg}xC|jD]8}||jkr|j|}|j||f�qqW|rn|j�}|||�ndS(N(R�R.R%R,(R)Rrtconfl_optionalsR�tconfl_optionalR)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRE�s
cCsKtd�}djg|D]\}}|^q�}t|||��dS(Ns conflicting option string(s): %ss, (R�R(R(R)Rrtconflicting_actionsR�R�tconflict_string((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_handle_conflict_error�s	cCsZxS|D]K\}}|jj|�|jj|d�|js|jj|�qqWdS(N(R�RHR.R�R5RFRI(R)RrRWR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_handle_conflict_resolve�s
	N(R#R2RQR+R5R6R8R9RyRBRDR=RIRNR:R;R<R,RERYRZ(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s$	4				
	(					(		#				RAcBs)eZddd�Zd�Zd�ZRS(cKs�|j}|d|j�|d|j�|d|j�tt|�j}|d||�||_g|_|j	|_	|j
|_
|j|_|j|_|j
|_
dS(NR)R(R'R&(RR)R(R'R�RARQRJR�R*R-R.R1R3(R)RFRJR&RR7t
super_init((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�s			cCs,tt|�j|�}|jj|�|S(N(R�RAR=R�R%(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR=�scCs*tt|�j|�|jj|�dS(N(R�RARIR�RH(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRI�sN(R#R2R5RQR=RI(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRA�s	RCcBs&eZed�Zd�Zd�ZRS(cCs,tt|�j|�||_||_dS(N(R�RCRQR�t
_container(R)RFR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQ�s	cCsJ|jr$td�}t|��n|jj|�}|jj|�|S(Ns-mutually exclusive arguments must be optional(R�R�R>R\R=R�R%(R)RrR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR=�s	cCs$|jj|�|jj|�dS(N(R\RIR�RH(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRI�s(R#R2R�RQR=RI(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRC�s	c
BsUeZdZd!d!d!d!d!gedd!d!ded�Zd�Zd�Zd�Z	d�Z
d�Zd!d!d	�Zd!d!d
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd!d�Zd!d�Zd!d�Zd!d�Z dd!d�Z!d �Z"RS("saObject for parsing command line strings into Python objects.

    Keyword Arguments:
        - prog -- The name of the program (default: sys.argv[0])
        - usage -- A usage message (default: auto-generated from arguments)
        - description -- A description of what the program does
        - epilog -- Text following the argument descriptions
        - parents -- Parsers whose arguments should be copied into this one
        - formatter_class -- HelpFormatter class for printing help messages
        - prefix_chars -- Characters that prefix optional arguments
        - fromfile_prefix_chars -- Characters that prefix files containing
            additional arguments
        - argument_default -- The default value for all arguments
        - conflict_handler -- String indicating how to handle conflicts
        - add_help -- Add a -h/-help option
    Rterrorc
Cs|dk	r+ddl}
|
jdt�ntt|�j}|d|d|d|
d|�|dkr�tjj	t
jd�}n||_||_
||_||_||_|	|_||_|j}|td��|_|td	��|_d|_d
�}|jdd|�d|kr0d}n
|d}|jrz|j|d
|dddddtdtd��n|jr�|j|d|dddddtd|jdtd��nxL|D]D}|j|�y
|j}Wntk
r�q�X|jj|�q�WdS(Ni����s�The "version" argument to ArgumentParser is deprecated. Please use "add_argument(..., action='version', version="N", ...)" insteadR&R(R'R)ispositional argumentssoptional argumentscSs|S(N((R((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytidentityAsR"RthiRlRrR�sshow this help message and exittvR�s&show program's version number and exit(R5twarningstwarntDeprecationWarningR�RRQR;tpathtbasenameRtargvRMRgtepilogR�tformatter_classtfromfile_prefix_charstadd_helpRBR�t_positionalst
_optionalst_subparsersR+RyRRNR1R�R7(R)RMRgR&RgR�tparentsRhR(RiR'R)RjRat	superinitt	add_groupR^tdefault_prefixRVtdefaults((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRQs\
											
			



cCsAdddddddg}g|D]}|t||�f^q"S(NRMRgR&R�RhR)Rj(R4(R)R�R-((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR'ds	c	KsG|jdk	r%|jtd��n|jdt|��d|ksSd|kr�t|jdd��}t|jdd��}|j||�|_n|j|_|j	d�dkr|j
�}|j�}|j}|j
|j||d�|j�j�|d<n|j|d�}|d	g|�}|jj|�|S(
Ns(cannot have multiple subparser argumentsRRJR&tsubcommandsRMRXR%R�(RmR5R]R�RR"R�RBRkR�R�t_get_positional_actionsR0RkRgR^R|R<R=(	R)RRJR&RUR�Rit
parsers_classRr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytadd_subparsersss$	cCs0|jr|jj|�n|jj|�|S(N(R�RlR=Rk(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR=�s	cCs#g|jD]}|jr
|^q
S(N(R-R�(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt_get_optional_actions�s
cCs#g|jD]}|js
|^q
S(N(R-R�(R)Rr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRt�s
cCsK|j||�\}}|rGtd�}|j|dj|��n|S(Nsunrecognized arguments: %sR(RR�R]R((R)R[R7RfR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
parse_args�s
cCs�|dkrtjd}n|dkr4t�}nx�|jD]�}|jtk	r>t||j�s�|jtk	r�|j}t	|jt
�r�|j||�}nt||j|�q�q�q>q>Wx:|j
D]/}t||�s�t|||j
|�q�q�Wy[|j||�\}}t|t�rQ|jt|t��t|t�n||fSWn4tk
r�tj�d}|jt|��nXdS(Ni(R5RRfRR-R�RRR�R�t
basestringt
_get_valueR6R1t_parse_known_argsR	R�R4tdelattrRtexc_infoR]R�(R)R[R7RrR�R�terr((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�s0	 
cs��	jdk	r!�	j���ni�xr�	jD]g}|j}xUt|j�D]D\}}�j|g�}|j|| �|j||d�qPWq1Wi�g}t��}	x�t|	�D]�\}}
|
dkr|j	d�x_|	D]}
|j	d�q�Wq��	j
|
�}|dkr+d}n|�|<d}|j	|�q�Wdj|��t��t��d�����	fd��
�����	�
fd�}
�	j
������	�
fd	�}g�d
}�r�t��}nd}x�||kr�tg�D]}||kr|^q�}||krj||�}||kra|}q�qj|}n|�kr��||!}�j|�|}n|
|�}q�W||�}�j�|��r��	jtd��nxO�	jD]D}|jr�|�kr0t|�}�	jtd
�|�q0q�q�Wx��	jD]�}|jr>x{|jD]}|�krWPqWqWWg|jD]!}|jtk	r{t|�^q{}td�}�	j|dj|��q>q>W��fS(Nis--RtAtORXcs��j|��j||�}||jk	r��j|�xW�j|g�D]@}|�krNtd�}t|�}t|||��qNqNWn|tk	r�|��||�ndS(Nsnot allowed with argument %s(R�t_get_valuesR�R�R�R�RR(Rrtargument_stringsR�targument_valuestconflict_actionRtaction_name(taction_conflictsR7tseen_actionstseen_non_default_actionsR)(s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyttake_action�s

cs�|}|\}}}�j}g}x�tr�|dkrV�j�|�|dS|dk	ry||d�}�j}|dkr|d|kr|j|g|f�|d}	|	|d}|dp�d}
�j}||kr�||}|
}qvtd�}t|||��q�|dkrW|d}
|g}|j|||f�Pq�td�}t|||��q+|d}�|}|||�}||}
�||
!}|j|||f�Pq+W|s�t�x'|D]\}}}�|||�q�W|
S(NiRisignored explicit argument %r(	t_match_argumentR�R5R%R(R.R�RRS(tstart_indextoption_tupleRrR�texplicit_argtmatch_argumentt
action_tuplest	arg_countR>tchartnew_explicit_argt
optionals_mapRtstopR[R�tselected_patterns(R+targ_strings_patterntextrastoption_string_indicesR)R�(s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytconsume_optionalsP
			
	
	
	



cs�j}�|}|�|�}xEt�|�D]4\}}�|||!}||7}�||�q2W�t|��(|S(N(t_match_arguments_partialtzipRp(R�t
match_partialtselected_patternt
arg_countsRrR�R[(R+R�R�R)R�(s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytconsume_positionalsas	

ii����stoo few argumentssargument %s is requireds#one of the arguments %s is requiredR(RiR5t_read_args_from_filesR0R�R�RR�titerR%t_parse_optionalR(R�RtRoR�R]R�R-R�R�RlR(R)R+R7RMR�R�tmutex_actiont	conflictstarg_string_pattern_partstarg_strings_itert
arg_stringR�tpatternR�R�R�tmax_option_string_indexR�tnext_option_string_indextpositionals_end_indextstringst
stop_indexRrR-R�R�R((R�R+R�R�R7R�R�R�R�R)R�s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR{�s�	

	
		J
	

		!	
!!cCsg}x�|D]�}|d|jkr6|j|�q
y�t|d�}zjg}xA|j�j�D]-}x$|j|�D]}|j|�q{WqeW|j|�}|j|�Wd|j�XWq
t	k
r�t
j�d}|jt
|��q
Xq
W|S(Nii(RiR%R�treadR�tconvert_arg_line_to_argsR�R�R�tIOErrorRR}R]R�(R)R+tnew_arg_stringsR�t	args_filetarg_lineR,R~((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s$

cCs|gS(N((R)R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��scCs�|j|�}tj||�}|dkr�itd�d6td�t6td�t6}td�|j}|j|j|�}t	||��nt
|jd��S(Nsexpected one argumentsexpected at most one argumentsexpected at least one argumentsexpected %s argument(s)i(t_get_nargs_patternRIRGR5R�RR
R�R�RRpR�(R)RrR�t
nargs_patternRGtnargs_errorsR�R((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s

c
Cs�g}x�tt|�dd�D]�}|| }djg|D]}|j|�^q<�}tj||�}|dk	r|jg|j�D]}	t|	�^q��PqqW|S(Nii����RX(	R�RpR(R�RIRGR5R�Ri(
R)RhR�RR�t
actions_sliceRrR�RGR((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s
	",c	Cs�|s
dS|d|jkr!dS||jkrJ|j|}||dfSt|�dkr`dSd|kr�|jdd�\}}||jkr�|j|}|||fSn|j|�}t|�dkr"djg|D]\}}}|^q��}||f}|jtd�|�nt|�dkrA|\}|S|j	j
|�rc|jscdSnd|krsdSd|dfS(Niit=s, s#ambiguous option: %s could match %sR(R5R(R.Rptsplitt_get_option_tuplesR(R]R�R2RGR3(	R)R�RrR�R�t
option_tuplestoptionsR�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s:


	"		c
Cs�g}|j}|d|kr�|d|kr�d|krV|jdd�\}}n|}d}x0|jD]A}|j|�rl|j|}|||f}|j|�qlqlWn�|d|kr~|d|kr~|}d}|d }|d}	x�|jD]y}||kr<|j|}|||	f}|j|�q�|j|�r�|j|}|||f}|j|�q�q�Wn|jtd�|�|S(NiiR�isunexpected option string: %s(R(R�R5R.t
startswithR%R]R�(
R)R�RR>t
option_prefixR�RrR�tshort_option_prefixtshort_explicit_arg((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�7s8	 
 



cCs�|j}|dkrd}n�|tkr3d}nk|tkrHd}nV|tkr]d}nA|tkrrd}n,|tkr�d}nddjd	|�}|jr�|j	dd
�}|j	dd
�}n|S(Ns(-*A-*)s(-*A?-*)s	(-*[A-]*)s
(-*A[A-]*)s([-AO]*)s(-*A[-AO]*)s(-*%s-*)s-*RRXR(
R�R5RRR
R
RR(R�RQ(R)RrR�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�cs$								c	Cs|jttgkr=g|D]}|dkr|^q}n|r�|jtkr�|jrh|j}n	|j}t|t�r|j	||�}|j
||�qnq|r�|jtkr�|jr�|jdk	r�|j}n|}|j
||�nt
|�dkrQ|jdtgkrQ|\}|j	||�}|j
||�n�|jtkr�g|D]}|j	||�^qg}n�|jtkr�g|D]}|j	||�^q�}|j
||d�nFg|D]}|j	||�^q�}x|D]}|j
||�q�W|S(Ns--ii(R�RR
RR�R�R�R�RyRzt_check_valueRR5Rp(R)RrR+RvR.R�R`((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s8(		
'	(%%
cCs
|jd|j|j�}t|�sItd�}t|||��ny||�}Wn�tk
r�t|jdt|j��}tt	j
�d�}t||��nZttfk
rt|jdt|j��}td�}t||||f��nX|S(NR"s%r is not callableR#isinvalid %s value: %r(
R6R"RR�RRR4R&R�RR}ROR>(R)RrR�R@RRR-((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRz�s
cCse|jdk	ra||jkra|djtt|j��f}td�|}t||��ndS(Ns, s#invalid choice: %r (choose from %s)(R�R5R(tmapR&R�R(R)RrR.R�R((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR��s!cCs2|j�}|j|j|j|j�|j�S(N(R�RkRgR-R0R^(R)RU((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytformat_usage�s
cCs�|j�}|j|j|j|j�|j|j�xK|jD]@}|j|j	�|j|j�|j
|j�|j�qBW|j|j
�|j�S(N(R�RkRgR-R0ReR&R/RaRJRzR�RbRgR^(R)RUtaction_group((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR^�s
cCsBddl}|jdt�|j�}|j|j�|j�S(Ni����skThe format_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(RaRbRcR�ReR�R^(R)RaRU((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytformat_version	scCs|jd|j�S(NRM(RhRM(R)((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�
	scCs2|dkrtj}n|j|j�|�dS(N(R5RRt_print_messageR�(R)tfile((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pytprint_usage	scCs2|dkrtj}n|j|j�|�dS(N(R5RRR�R^(R)R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�	scCs6ddl}|jdt�|j|j�|�dS(Ni����sjThe print_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(RaRbRcR�R�(R)R�Ra((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt
print_version	s
cCs2|r.|dkrtj}n|j|�ndS(N(R5Rtstderrtwrite(R)R�R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�"	sicCs-|r|j|tj�ntj|�dS(N(R�RR�R�(R)tstatusR�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR�+	scCs7|jtj�|jdtd�|j|f�dS(s�error(message: string)

        Prints a usage message incorporating the message to stderr and
        exits.

        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
        is%s: error: %s
N(R�RR�R�R�RM(R)R�((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyR]0	s	N(#R#R2R3R5RR�RQR'RvR=RwRtRxRR{R�R�R�R�R�R�R�R�RzR�R�R^R�R�R�R�R�R�R�R](((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyRsRE					#	�					9	,	,	1		
			
		(;R3t__version__t__all__R�R�tosR;treRItsysRttextwrapR�RR�R�t	NameErrortsetsRRyR�RR�RRRRR
RR
R	R�R!R8RRRRR�t	ExceptionRRR	R�R�R�R�R�R�R�R�R�R�RRRRARCR(((s9/opt/alt/python27/lib/python2.7/site-packages/argparse.pyt<module>>s�	



		
��	
	[#%M+�*!

Zerion Mini Shell 1.0