Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.220.95.15
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : argparse.cpython-32.pyo
l
��bc@s�dZdZdddddddd	d
ddd
ddddgZddlZddlZddlZddl	Z
ddlZddl
ZddlmZmZdZdZdZdZdZdZdZGd�de�Zd�ZGd�de�ZGd �de�ZGd!�d	e�ZGd"�de�Zd#�Z Gd$�de!�Z"Gd%�de!�Z#Gd&�de�Z$Gd'�d(e$�Z%Gd)�d*e$�Z&Gd+�d,e&�Z'Gd-�d.e&�Z(Gd/�d0e$�Z)Gd1�d2e$�Z*Gd3�d4e$�Z+Gd5�d6e$�Z,Gd7�d8e$�Z-Gd9�d:e$�Z.Gd;�de�Z/Gd<�d
e�Z0Gd=�d>e�Z1Gd?�d@e1�Z2GdA�dBe2�Z3GdC�dee1�Z4dS(Du�
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.)
u1.1uArgumentParseru
ArgumentErroruArgumentTypeErroruFileTypeu
HelpFormatteruArgumentDefaultsHelpFormatteruRawDescriptionHelpFormatteruRawTextHelpFormatteru	NamespaceuActionuONE_OR_MOREuOPTIONALuPARSERu	REMAINDERuSUPPRESSuZERO_OR_MOREiN(ugettextungettextu==SUPPRESS==u?u*u+uA...u...u_unrecognized_argscBs/|EeZdZd�Zd�Zd�ZdS(uAbstract 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(Nu%s=%ru%s(%s)u, (utypeu__name__u	_get_argsuappendurepru_get_kwargsujoin(uselfu	type_nameuarg_stringsuargunameuvalue((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__repr__uscCst|jj��S(N(usortedu__dict__uitems(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_kwargs~scCsgS(N((uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu	_get_args�sN(u__name__u
__module__u__doc__u__repr__u_get_kwargsu	_get_args(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_AttributeHolderls
			u_AttributeHoldercCs8t||d�dkr+t|||�nt||�S(N(ugetattruNoneusetattr(u	namespaceunameuvalue((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
_ensure_value�scBs|EeZdZdddd�Zd�Zd�ZGd�de�Zd�Z	d	�Z
d
�Zd�Zdd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZdS(u�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.
    iicCs�|dkrQyttjd�}Wnttfk
rCd}YnX|d8}n||_||_||_||_	d|_
d|_d|_|j
|d�|_|j|_tjd�|_tjd�|_dS(NuCOLUMNSiPiiu\s+u\n\n\n+(uNoneuintu_osuenvironuKeyErroru
ValueErroru_progu_indent_incrementu_max_help_positionu_widthu_current_indentu_levelu_action_max_lengthu_Sectionu
_root_sectionu_current_sectionu_reucompileu_whitespace_matcheru_long_break_matcher(uselfuproguindent_incrementumax_help_positionuwidth((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s"
							cCs%|j|j7_|jd7_dS(Ni(u_current_indentu_indent_incrementu_level(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_indent�scCs%|j|j8_|jd8_dS(Ni(u_current_indentu_indent_incrementu_level(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_dedent�scBs#|EeZdd�Zd�ZdS(cCs(||_||_||_g|_dS(N(u	formatteruparentuheadinguitems(uselfu	formatteruparentuheading((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s			cCs�|jdk	r|jj�n|jj}x!|jD]\}}||�q5W|d�|jD��}|jdk	r�|jj�n|s�dS|jtk	r�|jdk	r�|jj	}d|d|jf}nd}|d||dg�S(NcSs"g|]\}}||��qS(((u.0ufuncuargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	uu%*s%s:
u
(
uparentuNoneu	formatteru_indentu_join_partsuitemsu_dedentuheadinguSUPPRESSu_current_indent(uselfujoinufuncuargsu	item_helpucurrent_indentuheading((u//usr/local/python-3.2/lib/python3.2/argparse.pyuformat_help�sN(u__name__u
__module__uNoneu__init__uformat_help(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_Section�s
u_SectioncCs|jjj||f�dS(N(u_current_sectionuitemsuappend(uselfufuncuargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyu	_add_item�scCsB|j�|j||j|�}|j|jg�||_dS(N(u_indentu_Sectionu_current_sectionu	_add_itemuformat_help(uselfuheadingusection((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
start_section�s
cCs|jj|_|j�dS(N(u_current_sectionuparentu_dedent(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyuend_section�scCs5|tk	r1|dk	r1|j|j|g�ndS(N(uSUPPRESSuNoneu	_add_itemu_format_text(uselfutext((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_text�scCs8|tk	r4||||f}|j|j|�ndS(N(uSUPPRESSu	_add_itemu
_format_usage(uselfuusageuactionsugroupsuprefixuargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyu	add_usage�scCs�|jtk	r�|j}||�g}x*|j|�D]}|j||��q7Wtd�|D��}||j}t|j|�|_|j|j	|g�ndS(NcSsg|]}t|��qS((ulen(u.0us((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>s	(
uhelpuSUPPRESSu_format_action_invocationu_iter_indented_subactionsuappendumaxu_current_indentu_action_max_lengthu	_add_itemu_format_action(uselfuactionuget_invocationuinvocationsu	subactionuinvocation_lengthu
action_length((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_argument�s	
	cCs"x|D]}|j|�qWdS(N(uadd_argument(uselfuactionsuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
add_argumentss
cCsD|jj�}|r@|jjd|�}|jd�d}n|S(Nu

u
(u
_root_sectionuformat_helpu_long_break_matcherusubustrip(uselfuhelp((u//usr/local/python-3.2/lib/python3.2/argparse.pyuformat_helps
cCsdjd�|D��S(NucSs(g|]}|r|tk	r|�qS((uSUPPRESS(u.0upart((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>s	(ujoin(uselfupart_strings((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_join_partss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}	|	|||�}
djd�||
gD��}|j|j	�t
|�t
|��kr�d}|	||�}|	||�}
tj||�}tj||
�}d�fd�}t
|�t
|�d�kr6dt
|�t
|�d	}|r||g|||�}|j
|||��q�|r*||g|||�}q�|g}n}dt
|�}||}|||�}t
|�d	kr�g}|j
|||��|j
|||��n|g|}d
j|�}q�nd||fS(Nuusage: uprogu%(prog)su cSsg|]}|r|�qS(((u.0us((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>:s	u\(.*?\)+|\[.*?\]+|\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�|d<n|S(Niu i(uNoneulenuappendujoin(upartsuindentuprefixulinesulineuline_lenupart(u
text_width(u//usr/local/python-3.2/lib/python3.2/argparse.pyu	get_linesJs"

!g�?iu
u%s%s

(uNoneu_udictu_proguoption_stringsuappendu_format_actions_usageujoinu_widthu_current_indentulenu_reufindalluextend(uselfuusageuactionsugroupsuprefixuprogu	optionalsupositionalsuactionuformatuaction_usageupart_regexpu	opt_usageu	pos_usageu	opt_partsu	pos_partsu	get_linesuindentulinesuparts((u
text_widthu//usr/local/python-3.2/lib/python3.2/argparse.pyu
_format_usagesV
		 

c
Cs�t�}i}x&|D]}y|j|jd�}Wntk
rMwYqX|t|j�}|||�|jkrx|jD]}|j|�q�W|js�||kr�||d7<n
d||<d||<n1||kr�||d7<n
d||<d||<x(t|d|�D]}	d	||	<qWqqWg}
x�t|�D]w\}	}|j	t
kr�|
jd�|j
|	�d	kr�|j|	�q�|j
|	d�d	kr�|j|	d�q�qK|js8|j||j�}||kr(|ddkr(|ddkr(|dd�}q(n|
j|�qK|jd}|jdkrad
|}n1|jj�}
|j||
�}d||f}|jr�||kr�d|}n|
j|�qKWx1t|d
d�D]}	||	g|
|	|	�<q�Wdjd�|
D��}d}d}tjd|d|�}tjd|d|�}tjd||fd|�}tjdd|�}|j�}|S(Niu [u[u]u (u(u)iu|u%su%s %su[%s]ureverseu cSs"g|]}|dk	r|�qS(N(uNone(u.0uitem((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	u[\[(]u[\])]u(%s) u\1u (%s)u%s *%suu\(([^|]*)\)i����i����T(usetuindexu_group_actionsu
ValueErrorulenuaddurequiredurangeu	enumerateuhelpuSUPPRESSuappenduNoneugetupopuoption_stringsu_format_argsudestunargsuupperusorteduTrueujoinu_reusubustrip(uselfuactionsugroupsu
group_actionsuinsertsugroupustartuenduactionuiupartsupartu
option_stringudefaultuargs_stringutextuopenuclose((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_format_actions_usagezsp	

	




	 


cCsYd|kr%|td|j�}n|j|j}d|j}|j|||�dS(Nu%(prog)uprogu u

(udictu_progu_widthu_current_indentu
_fill_text(uselfutextu
text_widthuindent((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_format_text�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}|jrS|j|�}	|j	|	|�}
|j
d|d|
df�xT|
dd�D] }|j
d|d|f�q,Wn|jd�sr|j
d�nx-|j|�D]}|j
|j
|��q�W|j|�S(Niuu%*s%s
u	%*s%-*s  iiu
(uminu_action_max_lengthu_max_help_positionu_widthu_current_indentu_format_action_invocationuhelpulenu_expand_helpu_split_linesuappenduendswithu_iter_indented_subactionsu_format_actionu_join_parts(
uselfuactionu
help_positionu
help_widthuaction_widthu
action_headerutupuindent_firstupartsu	help_textu
help_linesulineu	subaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_format_action�s6

	

	
		!cCs�|js+|j||j�d�\}|Sg}|jdkrS|j|j�nL|jj�}|j||�}x(|jD]}|jd||f�q~Wdj|�SdS(Niiu%s %su, (	uoption_stringsu_metavar_formatterudestunargsuextenduupperu_format_argsuappendujoin(uselfuactionumetavarupartsudefaultuargs_stringu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_format_action_invocations	csl|jdk	r|j�n>|jdk	rSd�|jD�}ddj|��n|��fd�}|S(NcSsg|]}t|��qS((ustr(u.0uchoice((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>+s	u{%s}u,cs"t�t�r�S�f|SdS(N(u
isinstanceutuple(u
tuple_size(uresult(u//usr/local/python-3.2/lib/python3.2/argparse.pyuformat0s(umetavaruNoneuchoicesujoin(uselfuactionudefault_metavaruchoice_strsuformat((uresultu//usr/local/python-3.2/lib/python3.2/argparse.pyu_metavar_formatter'scCs
|j||�}|jdkr4d|d�}n�|jtkrVd|d�}n�|jtkrxd|d�}n�|jtkr�d|d�}no|jtkr�d}nW|jtkr�d|d�}n5d	�t|j�D�}d
j	|�||j�}|S(Nu%siu[%s]u
[%s [%s ...]]iu%s [%s ...]u...u%s ...cSsg|]}d�qS(u%s((u.0u_((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>Fs	u (
u_metavar_formatterunargsuNoneuOPTIONALuZERO_OR_MOREuONE_OR_MOREu	REMAINDERuPARSERurangeujoin(uselfuactionudefault_metavaruget_metavaruresultuformats((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_format_args7s 	cCs�tt|�d|j�}x.t|�D] }||tkr(||=q(q(Wx;t|�D]-}t||d�rY||j||<qYqYW|jd�dk	r�dj	d�|dD��}||d<n|j
|�|S(Nuprogu__name__uchoicesu, cSsg|]}t|��qS((ustr(u.0uc((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>Ss	(udictuvarsu_progulistuSUPPRESSuhasattru__name__ugetuNoneujoinu_get_help_string(uselfuactionuparamsunameuchoices_str((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_expand_helpJs
ccsSy
|j}Wntk
r!Yn.X|j�x|�D]}|Vq6W|j�dS(N(u_get_subactionsuAttributeErroru_indentu_dedent(uselfuactionuget_subactionsu	subaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_iter_indented_subactionsWs


	cCs+|jjd|�j�}tj||�S(Nu (u_whitespace_matcherusubustripu	_textwrapuwrap(uselfutextuwidth((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_split_linesbscCs7|jjd|�j�}tj||d|d|�S(Nu uinitial_indentusubsequent_indent(u_whitespace_matcherusubustripu	_textwrapufill(uselfutextuwidthuindent((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
_fill_textfscCs|jS(N(uhelp(uselfuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_help_stringksN(u__name__u
__module__u__doc__uNoneu__init__u_indentu_dedentuobjectu_Sectionu	_add_itemu
start_sectionuend_sectionuadd_textu	add_usageuadd_argumentu
add_argumentsuformat_helpu_join_partsu
_format_usageu_format_actions_usageu_format_textu_format_actionu_format_action_invocationu_metavar_formatteru_format_argsu_expand_helpu_iter_indented_subactionsu_split_linesu
_fill_textu_get_help_string(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
HelpFormatter�s8
		!									\	`		/				
			cBs|EeZdZd�ZdS(u�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.
    cs&dj�fd�|jd�D��S(Nucsg|]}�|�qS(((u.0uline(uindent(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>ws	T(ujoinu
splitlinesuTrue(uselfutextuwidthuindent((uindentu//usr/local/python-3.2/lib/python3.2/argparse.pyu
_fill_textvsN(u__name__u
__module__u__doc__u
_fill_text(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuRawDescriptionHelpFormatteros
cBs|EeZdZd�ZdS(u�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(u
splitlines(uselfutextuwidth((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_split_lines�sN(u__name__u
__module__u__doc__u_split_lines(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuRawTextHelpFormatterzs
cBs|EeZdZd�ZdS(u�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(Nu
%(default)u (default: %(default)s)(uhelpudefaultuSUPPRESSuOPTIONALuZERO_OR_MOREuoption_stringsunargs(uselfuactionuhelpudefaulting_nargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_help_string�s	N(u__name__u
__module__u__doc__u_get_help_string(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuArgumentDefaultsHelpFormatter�s
cCsi|dkrdS|jr)dj|j�S|jdtfkrE|jS|jdtfkra|jSdSdS(Nu/(uNoneuoption_stringsujoinumetavaruSUPPRESSudest(uargument((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_action_name�s	cBs&|EeZdZd�Zd�ZdS(u�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(u_get_action_nameu
argument_nameumessage(uselfuargumentumessage((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�scCs;|jdkrd}nd}|td|jd|j�S(Nu%(message)su'argument %(argument_name)s: %(message)sumessageu
argument_name(u
argument_nameuNoneudictumessage(uselfuformat((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__str__�s
	N(u__name__u
__module__u__doc__u__init__u__str__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
ArgumentError�s
	cBs|EeZdZdS(u@An error from trying to convert a command line string to a type.N(u__name__u
__module__u__doc__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuArgumentTypeError�s
c	BsJ|EeZdZddddddddd�Zd�Zdd�ZdS(u\	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 -- A callable that accepts a single string argument, and
            returns the converted value.  The standard Python types str, int,
            float, and complex are useful examples of such callables.  If None,
            str is used.

        - 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(
uoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar(uselfuoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s									c	s5ddddddddd	g	}�fd
�|D�S(Nuoption_stringsudestunargsuconstudefaultutypeuchoicesuhelpumetavarcs%g|]}|t�|�f�qS((ugetattr(u.0uname(uself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>s	((uselfunames((uselfu//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_kwargs
s	cCsttd���dS(Nu.__call__() not defined(uNotImplementedErroru_(uselfuparseru	namespaceuvaluesu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__sNF(u__name__u
__module__u__doc__uNoneuFalseu__init__u_get_kwargsu__call__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuAction�s
1	c
sA|EeZdddddddd�fd�Zdd�Z�S(cs�|dkrtd��n|dk	rF|tkrFtdt��ntt|�jd|d|d|d|d|d	|d
|d|d|	d
|
�
dS(Niu�nargs for store actions must be > 0; if you have nothing to store, actions such as store true or store const may be more appropriateu nargs must be %r to supply constuoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar(u
ValueErroruNoneuOPTIONALusuperu_StoreActionu__init__(uselfuoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__!scCst||j|�dS(N(usetattrudest(uselfuparseru	namespaceuvaluesu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__>sNF(u__name__u
__module__uNoneuFalseu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_StoreActions
u_StoreActioncs5|EeZdddd�fd�Zdd�Z�S(csAtt|�jd|d|ddd|d|d|d|�dS(	Nuoption_stringsudestunargsiuconstudefaulturequireduhelp(usuperu_StoreConstActionu__init__(uselfuoption_stringsudestuconstudefaulturequireduhelpumetavar(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__DscCst||j|j�dS(N(usetattrudestuconst(uselfuparseru	namespaceuvaluesu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__UsNF(u__name__u
__module__uNoneuFalseu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_StoreConstActionBs


u_StoreConstActioncs&|EeZddd�fd�Z�S(c
s;tt|�jd|d|ddd|d|d|�dS(Nuoption_stringsudestuconstudefaulturequireduhelpT(usuperu_StoreTrueActionu__init__uTrue(uselfuoption_stringsudestudefaulturequireduhelp(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__[sFN(u__name__u
__module__uFalseuNoneu__init__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_StoreTrueActionYs
u_StoreTrueActioncs&|EeZddd�fd�Z�S(c
s;tt|�jd|d|ddd|d|d|�dS(Nuoption_stringsudestuconstudefaulturequireduhelpF(usuperu_StoreFalseActionu__init__uFalse(uselfuoption_stringsudestudefaulturequireduhelp(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__lsTFN(u__name__u
__module__uTrueuFalseuNoneu__init__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_StoreFalseActionjs
u_StoreFalseActionc
sA|EeZdddddddd�fd�Zdd�Z�S(cs�|dkrtd��n|dk	rF|tkrFtdt��ntt|�jd|d|d|d|d|d	|d
|d|d|	d
|
�
dS(Niu�nargs for append actions must be > 0; if arg strings are not supplying the value to append, the append const action may be more appropriateu nargs must be %r to supply constuoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar(u
ValueErroruNoneuOPTIONALusuperu
_AppendActionu__init__(uselfuoption_stringsudestunargsuconstudefaultutypeuchoicesurequireduhelpumetavar(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__}scCsBtjt||jg��}|j|�t||j|�dS(N(u_copyucopyu
_ensure_valueudestuappendusetattr(uselfuparseru	namespaceuvaluesu
option_stringuitems((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__�s
NF(u__name__u
__module__uNoneuFalseu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu
_AppendAction{s
u
_AppendActioncs5|EeZdddd�fd�Zdd�Z�S(csGtt|�jd|d|ddd|d|d|d|d	|�dS(
Nuoption_stringsudestunargsiuconstudefaulturequireduhelpumetavar(usuperu_AppendConstActionu__init__(uselfuoption_stringsudestuconstudefaulturequireduhelpumetavar(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�scCsEtjt||jg��}|j|j�t||j|�dS(N(u_copyucopyu
_ensure_valueudestuappenduconstusetattr(uselfuparseru	namespaceuvaluesu
option_stringuitems((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__�sNF(u__name__u
__module__uNoneuFalseu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_AppendConstAction�s

u_AppendConstActioncs2|EeZddd�fd�Zdd�Z�S(c
s;tt|�jd|d|ddd|d|d|�dS(Nuoption_stringsudestunargsiudefaulturequireduhelp(usuperu_CountActionu__init__(uselfuoption_stringsudestudefaulturequireduhelp(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�scCs0t||jd�d}t||j|�dS(Nii(u
_ensure_valueudestusetattr(uselfuparseru	namespaceuvaluesu
option_stringu	new_count((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__�sNF(u__name__u
__module__uNoneuFalseu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_CountAction�s
	u_CountActioncs2|EeZeed�fd�Zdd�Z�S(cs5tt|�jd|d|d|ddd|�dS(Nuoption_stringsudestudefaultunargsiuhelp(usuperu_HelpActionu__init__(uselfuoption_stringsudestudefaultuhelp(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�scCs|j�|j�dS(N(u
print_helpuexit(uselfuparseru	namespaceuvaluesu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__�s
N(u__name__u
__module__uSUPPRESSuNoneu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_HelpAction�s
u_HelpActioncs5|EeZdeed�fd�Zdd�Z�S(u&show program's version number and exitcs>tt|�jd|d|d|ddd|�||_dS(Nuoption_stringsudestudefaultunargsiuhelp(usuperu_VersionActionu__init__uversion(uselfuoption_stringsuversionudestudefaultuhelp(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�scCsT|j}|dkr!|j}n|j�}|j|�|jd|j��dS(Numessage(uversionuNoneu_get_formatteruadd_textuexituformat_help(uselfuparseru	namespaceuvaluesu
option_stringuversionu	formatter((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__�s	
N(u__name__u
__module__uNoneuSUPPRESSu__init__u__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_VersionAction�s

	u_VersionActioncsW|EeZGd�de�Zedd�fd�Zd�Zd�Zdd�Z	�S(cs|EeZ�fd�Z�S(c	sb|}}|r*|ddj|�7}nttj|�}|jdgd|d|d|�dS(Nu (%s)u, uoption_stringsudestuhelpumetavar(ujoinusuperu_SubParsersActionu_ChoicesPseudoActionu__init__(uselfunameualiasesuhelpumetavarudestusup(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s
(u__name__u
__module__u__init__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_ChoicesPseudoAction�s
u_ChoicesPseudoActionc
sh||_||_tj�|_g|_tt|�jd|d|dt	d|jd|d|�dS(Nuoption_stringsudestunargsuchoicesuhelpumetavar(
u_prog_prefixu
_parser_classu_collectionsuOrderedDictu_name_parser_mapu_choices_actionsusuperu_SubParsersActionu__init__uPARSER(uselfuoption_stringsuproguparser_classudestuhelpumetavar(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__s				cKs�|jd�dkr/d|j|f|d<n|jdd�}d|kr�|jd�}|j|||�}|jj|�n|j|�}||j|<x|D]}||j|<q�W|S(Nuprogu%s %sualiasesuhelp((	ugetuNoneu_prog_prefixupopu_ChoicesPseudoActionu_choices_actionsuappendu
_parser_classu_name_parser_map(uselfunameukwargsualiasesuhelpu
choice_actionuparserualias((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
add_parsers

cCs|jS(N(u_choices_actions(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_subactions3sc	Cs�|d}|dd�}|jtk	r?t||j|�ny|j|}WnQtk
r�i|d6dj|j�d6}td�|}t||��YnX|j||�\}}|r�t	|�j
tg�t|t�j
|�ndS(Niiuparser_nameu, uchoicesu5unknown parser %(parser_name)r (choices: %(choices)s)(udestuSUPPRESSusetattru_name_parser_mapuKeyErrorujoinu_u
ArgumentErroruparse_known_argsuvarsu
setdefaultu_UNRECOGNIZED_ARGS_ATTRugetattruextend(	uselfuparseru	namespaceuvaluesu
option_stringuparser_nameuarg_stringsuargsumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__6s


N(
u__name__u
__module__uActionu_ChoicesPseudoActionuSUPPRESSuNoneu__init__u
add_parseru_get_subactionsu__call__(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_SubParsersAction�s
		u_SubParsersActioncBs5|EeZdZddd�Zd�Zd�ZdS(u�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.
    uricCs||_||_dS(N(u_modeu_bufsize(uselfumodeubufsize((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__as	cCs�|dkrZd|jkr"tjSd|jkr8tjStd�|j}t|��nyt||j|j�SWnGtk
r�}z'td�}t	|||f��WYdd}~XnXdS(Nu-uruwuargument "-" with mode %rucan't open '%s': %s(
u_modeu_sysustdinustdoutu_u
ValueErroruopenu_bufsizeuIOErroruArgumentTypeError(uselfustringumsgueumessage((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__call__escCsB|j|jf}djd�|D��}dt|�j|fS(Nu, css'|]}|dkrt|�VqdS(iNi����(urepr(u.0uarg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu	<genexpr>ysu%s(%s)(u_modeu_bufsizeujoinutypeu__name__(uselfuargsuargs_str((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__repr__wsNi����(u__name__u
__module__u__doc__u__init__u__call__u__repr__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyuFileTypeTs
	cBs8|EeZdZd�Zd�Zd�Zd�ZdS(u�Simple object for storing attributes.

    Implements equality by attribute names and values, and provides a simple
    string representation.
    cKs)x"|D]}t||||�qWdS(N(usetattr(uselfukwargsuname((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s
cCst|�t|�kS(N(uvars(uselfuother((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__eq__�scCs||kS(N((uselfuother((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__ne__�scCs
||jkS(N(u__dict__(uselfukey((u//usr/local/python-3.2/lib/python3.2/argparse.pyu__contains__�sN(u__name__u
__module__u__doc__u__init__u__eq__u__ne__u__contains__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/argparse.pyu	Namespace�s

			cs�|EeZ�fd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zdd
�Zd�Zd�Zd�Zd�Z�S(csgtt|�j�||_||_||_||_i|_|jddt
�|jddt
�|jddt�|jddt�|jddt
�|jddt�|jddt�|jddt�|jdd	t�|jdd
t�|jddt�|j�g|_i|_g|_g|_i|_tjd�|_g|_dS(
Nuactionustoreustore_constu
store_trueustore_falseuappenduappend_constucountuhelpuversionuparsersu^-\d+$|^-\d*\.\d+$(usuperu_ActionsContaineru__init__udescriptionuargument_defaultuprefix_charsuconflict_handleru_registriesuregisteruNoneu_StoreActionu_StoreConstActionu_StoreTrueActionu_StoreFalseActionu
_AppendActionu_AppendConstActionu_CountActionu_HelpActionu_VersionActionu_SubParsersActionu_get_handleru_actionsu_option_string_actionsu_action_groupsu_mutually_exclusive_groupsu	_defaultsu_reucompileu_negative_number_matcheru_has_negative_number_optionals(uselfudescriptionuprefix_charsuargument_defaultuconflict_handler(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s2					
					cCs#|jj|i�}|||<dS(N(u_registriesu
setdefault(uselfu
registry_nameuvalueuobjecturegistry((u//usr/local/python-3.2/lib/python3.2/argparse.pyuregister�scCs|j|j||�S(N(u_registriesuget(uselfu
registry_nameuvalueudefault((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
_registry_get�scKsJ|jj|�x3|jD](}|j|kr||j|_qqWdS(N(u	_defaultsuupdateu_actionsudestudefault(uselfukwargsuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyuset_defaults�scCsLx6|jD]+}|j|kr
|jdk	r
|jSq
W|jj|d�S(N(u_actionsudestudefaultuNoneu	_defaultsuget(uselfudestuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyuget_default�scOs�|j}|s6t|�dkrl|dd|krl|rWd|krWtd��n|j||�}n|j||�}d|kr�|d}||jkr�|j||d<q�|jdk	r�|j|d<q�n|j|�}t	|�s
td|f��n||�}|j
d|j|j�}t	|�sStd|f��nt|d	�r�y|j
�j|d�Wq�tk
r�td
��Yq�Xn|j|�S(u�
        add_argument(dest, ..., name=value, ...)
        add_argument(option_string, option_string, ..., name=value, ...)
        iiudestu+dest supplied twice for positional argumentudefaultuunknown action "%s"utypeu%r is not callableu_get_formatteru,length of metavar tuple does not match nargsN(uprefix_charsulenu
ValueErroru_get_positional_kwargsu_get_optional_kwargsu	_defaultsuargument_defaultuNoneu_pop_action_classucallableu
_registry_getutypeuhasattru_get_formatteru_format_argsu	TypeErroru_add_action(uselfuargsukwargsucharsudestuaction_classuactionu	type_func((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_argument�s2		-

cOs&t|||�}|jj|�|S(N(u_ArgumentGroupu_action_groupsuappend(uselfuargsukwargsugroup((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_argument_groupscKs#t||�}|jj|�|S(N(u_MutuallyExclusiveGroupu_mutually_exclusive_groupsuappend(uselfukwargsugroup((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_mutually_exclusive_groupscCs�|j|�|jj|�||_x|jD]}||j|<q0WxB|jD]7}|jj|�rQ|js�|jjd�q�qQqQW|S(NT(
u_check_conflictu_actionsuappendu	containeruoption_stringsu_option_string_actionsu_negative_number_matcherumatchu_has_negative_number_optionalsuTrue(uselfuactionu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_add_action!s
		cCs|jj|�dS(N(u_actionsuremove(uselfuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_remove_action6scCsOi}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(Nu.cannot merge actions - two groups are named %rutitleudescriptionuconflict_handlerurequired(u_action_groupsutitleu_u
ValueErroruadd_argument_groupudescriptionuconflict_handleru_group_actionsu_mutually_exclusive_groupsuadd_mutually_exclusive_groupurequiredu_actionsugetu_add_action(uselfu	containerutitle_group_mapugroupumsgu	group_mapuactionumutex_group((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_add_container_actions9s,				cKs�d|kr'td�}t|��n|jd�ttgkrOd|d<n|jd�tkr}d|kr}d|d<nt|d|dg�S(Nurequiredu1'required' is an invalid argument for positionalsunargsudefaultudestuoption_stringsT(u_u	TypeErrorugetuOPTIONALuZERO_OR_MOREuTrueudict(uselfudestukwargsumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_positional_kwargsas
!
c	Os^g}g}x�|D]�}|d|jkrbi|d6|jd6}td�}t||��n|j|�|d|jkrt|�dkr�|d|jkr�|j|�q�q�qqW|jdd�}|dkrH|r�|d}n
|d}|j|j�}|s3td�}t||��n|jdd	�}nt	|d|d
|�S(Niuoptionuprefix_charsuNinvalid option string %(option)r: must start with a character %(prefix_chars)riudestu%dest= is required for options like %ru-u_uoption_strings(
uprefix_charsu_u
ValueErroruappendulenupopuNoneulstripureplaceudict(	uselfuargsukwargsuoption_stringsulong_option_stringsu
option_stringumsgudestudest_option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_optional_kwargsqs0





cCs%|jd|�}|jd||�S(Nuaction(upopu
_registry_get(uselfukwargsudefaultuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_pop_action_class�scCsVd|j}yt||�SWn1tk
rQtd�}t||j��YnXdS(Nu_handle_conflict_%su%invalid conflict_resolution value: %r(uconflict_handlerugetattruAttributeErroru_u
ValueError(uselfuhandler_func_nameumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_handler�s

cCsrg}xC|jD]8}||jkr|j|}|j||f�qqW|rn|j�}|||�ndS(N(uoption_stringsu_option_string_actionsuappendu_get_handler(uselfuactionuconfl_optionalsu
option_stringuconfl_optionaluconflict_handler((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_check_conflict�s
cCsHtddt|��}djd�|D��}t|||��dS(Nuconflicting option string: %suconflicting option strings: %su, cSsg|]\}}|�qS(((u.0u
option_stringuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	(ungettextulenujoinu
ArgumentError(uselfuactionuconflicting_actionsumessageuconflict_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_handle_conflict_error�s
cCsZxS|D]K\}}|jj|�|jj|d�|js|jj|�qqWdS(N(uoption_stringsuremoveu_option_string_actionsupopuNoneu	containeru_remove_action(uselfuactionuconflicting_actionsu
option_string((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_handle_conflict_resolve�s
	N(u__name__u
__module__u__init__uregisteruNoneu
_registry_getuset_defaultsuget_defaultuadd_argumentuadd_argument_groupuadd_mutually_exclusive_groupu_add_actionu_remove_actionu_add_container_actionsu_get_positional_kwargsu_get_optional_kwargsu_pop_action_classu_get_handleru_check_conflictu_handle_conflict_erroru_handle_conflict_resolve(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_ActionsContainer�s$
4				
	/					(		$					u_ActionsContainercsA|EeZdd�fd�Z�fd�Z�fd�Z�S(cs�|j}|d|j�|d|j�|d|j�tt|�j}|d||�||_g|_|j	|_	|j
|_
|j|_|j|_|j
|_
|j|_dS(Nuconflict_handleruprefix_charsuargument_defaultudescription(u
setdefaultuconflict_handleruprefix_charsuargument_defaultusuperu_ArgumentGroupu__init__utitleu_group_actionsu_registriesu_actionsu_option_string_actionsu	_defaultsu_has_negative_number_optionalsu_mutually_exclusive_groups(uselfu	containerutitleudescriptionukwargsuupdateu
super_init(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s			cs,tt|�j|�}|jj|�|S(N(usuperu_ArgumentGroupu_add_actionu_group_actionsuappend(uselfuaction(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu_add_action�scs*tt|�j|�|jj|�dS(N(usuperu_ArgumentGroupu_remove_actionu_group_actionsuremove(uselfuaction(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu_remove_action�sN(u__name__u
__module__uNoneu__init__u_add_actionu_remove_action(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_ArgumentGroup�s
u_ArgumentGroupcs2|EeZd�fd�Zd�Zd�Z�S(cs,tt|�j|�||_||_dS(N(usuperu_MutuallyExclusiveGroupu__init__urequiredu
_container(uselfu	containerurequired(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__�s	cCsJ|jr$td�}t|��n|jj|�}|jj|�|S(Nu-mutually exclusive arguments must be optional(urequiredu_u
ValueErroru
_containeru_add_actionu_group_actionsuappend(uselfuactionumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_add_action�s	cCs$|jj|�|jj|�dS(N(u
_containeru_remove_actionu_group_actionsuremove(uselfuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_remove_action�sF(u__name__u
__module__uFalseu__init__u_add_actionu_remove_action(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyu_MutuallyExclusiveGroup�s
	u_MutuallyExclusiveGroupcsa|EeZdZd!d!d!d!d!gedd!d!dd"�fd�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"�S(#uaObject 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
    u-uerrorc
s|dk	r+ddl}
|
jdt�ntt|�j}|d|d|d|
d|�|dkr�tjj	t
jd�}n||_||_
||_||_||_|	|_||_|j}|td��|_|td��|_d|_d	�}|jd
d|�d|kr-dn|d}|jrw|j|d|d
ddddtdtd��n|jr�|j|d|d
ddddtd|jdtd��nxM|D]E}|j|�y
|j}Wntk
r�Yq�X|jj|�q�WdS(Niu�The "version" argument to ArgumentParser is deprecated. Please use "add_argument(..., action='version', version="N", ...)" insteadudescriptionuprefix_charsuargument_defaultuconflict_handlerupositional argumentsuoptional argumentscSs|S(N((ustring((u//usr/local/python-3.2/lib/python3.2/argparse.pyuidentity>sutypeu-uhiuhelpuactionudefaultushow this help message and exituvuversionu&show program's version number and exit(uNoneuwarningsuwarnuDeprecationWarningusuperuArgumentParseru__init__u_osupathubasenameu_sysuargvuproguusageuepiloguversionuformatter_classufromfile_prefix_charsuadd_helpuadd_argument_groupu_u_positionalsu
_optionalsu_subparsersuregisteruadd_argumentuSUPPRESSu_add_container_actionsu	_defaultsuAttributeErroruupdate(uselfuproguusageudescriptionuepiloguversionuparentsuformatter_classuprefix_charsufromfile_prefix_charsuargument_defaultuconflict_handleruadd_helpuwarningsu	superinitu	add_groupuidentityudefault_prefixuparentudefaults(u	__class__(u//usr/local/python-3.2/lib/python3.2/argparse.pyu__init__sX
													



cs/dddddddg}�fd�|D�S(	Nuproguusageudescriptionuversionuformatter_classuconflict_handleruadd_helpcs%g|]}|t�|�f�qS((ugetattr(u.0uname(uself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>hs	((uselfunames((uselfu//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_kwargs^s	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(
Nu(cannot have multiple subparser argumentsuparser_classutitleudescriptionusubcommandsuproguuparsersuoption_strings(u_subparsersuNoneuerroru_u
setdefaultutypeupopuadd_argument_groupu_positionalsugetu_get_formatteru_get_positional_actionsu_mutually_exclusive_groupsu	add_usageuusageuformat_helpustripu_pop_action_classu_add_action(	uselfukwargsutitleudescriptionu	formatterupositionalsugroupsu
parsers_classuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyuadd_subparsersms$	cCs0|jr|jj|�n|jj|�|S(N(uoption_stringsu
_optionalsu_add_actionu_positionals(uselfuaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_add_action�s	cCsd�|jD�S(NcSsg|]}|jr|�qS((uoption_strings(u.0uaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	(u_actions(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_optional_actions�scCsd�|jD�S(NcSsg|]}|js|�qS((uoption_strings(u.0uaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	(u_actions(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_positional_actions�scCsK|j||�\}}|rGtd�}|j|dj|��n|S(Nuunrecognized arguments: %su (uparse_known_argsu_uerrorujoin(uselfuargsu	namespaceuargvumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
parse_args�s
cCs}|dkr"tjdd�}nt|�}|dkrFt�}nx`|jD]U}|jtk	rPt||j�s�|j	tk	r�t
||j|j	�q�q�qPqPWx:|jD]/}t||�s�t
|||j|�q�q�Wy[|j||�\}}t|t
�r6|jt|t
��t|t
�n||fSWn5tk
rxtj�d}|jt|��YnXdS(Ni(uNoneu_sysuargvulistu	Namespaceu_actionsudestuSUPPRESSuhasattrudefaultusetattru	_defaultsu_parse_known_argsu_UNRECOGNIZED_ARGS_ATTRuextendugetattrudelattru
ArgumentErroruexc_infouerrorustr(uselfuargsu	namespaceuactionudestuerr((u//usr/local/python-3.2/lib/python3.2/argparse.pyuparse_known_args�s,#
c
s4�	jdk	r!�	j���ni�x~�	jD]s}|j}xat|j�D]P\}}�j|g�}|j|d|��|j||dd��qPWq1Wi�g}t��}	x�t|	�D]�\}}
|
dkr|j	d�x_|	D]}
|j	d�q�Wq��	j
|
�}|dkr7d}n|�|<d}|j	|�q�Wdj|��t��t��d�����	fd�������	�fd�}
�	j
������	�fd	�}g�d
�
�r�t��}nd}x��
|kr�t�
fd��D��}�
|krg|�
�}|�
kr^|�
qqg|�
n�
�kr���
|�}�j|�|�
n|
�
��
qW|�
�}�j�|d���r��	jtd��nx��	jD]�}|�kr�|jr3t|�}�	jtd
�|�q�|jdk	r�t|jt�r�t�|j�r�|jt�|j�kr�t�|j�	j||j��q�q�q�Wxz�	jD]o}|jr�x]|jD]}|�kr�Pq�q�Wd�|jD�}td�}�	j|dj|��q�q�W��fS(Niu--u-uAuOucs��j|��j||�}||jk	r��j|�xW�j|g�D]@}|�krNtd�}t|�}t|||��qNqNWn|tk	r�|��||�ndS(Nunot allowed with argument %s(uaddu_get_valuesudefaultugetu_u_get_action_nameu
ArgumentErroruSUPPRESS(uactionuargument_stringsu
option_stringuargument_valuesuconflict_actionumsguaction_name(uaction_conflictsu	namespaceuseen_actionsuseen_non_default_actionsuself(u//usr/local/python-3.2/lib/python3.2/argparse.pyutake_action�s

cs�|}|\}}}�j}g}x�|dkrP�j�|�|dS|dk	ry||d�}�j}|dkr|d|kr|j|g|f�|d}	|	|d}|dd�p�d}
�j}||kr�||}|
}qvtd�}t|||��q�|dkrW|d}
|g}|j|||f�Pq�td�}t|||��q+|d}�|d�}|||�}||}
�||
�}|j|||f�Pq+x'|D]\}}}�|||�q�W|
S(NiuAiuignored explicit argument %r(u_match_argumentuNoneuappenduprefix_charsu_option_string_actionsu_u
ArgumentError(ustart_indexuoption_tupleuactionu
option_stringuexplicit_argumatch_argumentu
action_tuplesu	arg_countucharsucharunew_explicit_argu
optionals_mapumsgustopuargsustartuselected_patterns(uarg_stringsuarg_strings_patternuextrasuoption_string_indicesuselfutake_action(u//usr/local/python-3.2/lib/python3.2/argparse.pyuconsume_optionalsN
		
	
	
	

cs��j}�|d�}|�|�}xHt�|�D]7\}}�|||�}||7}�||�q8W�t|�d��dd�<|S(N(u_match_arguments_partialuzipulen(ustart_indexu
match_partialuselected_patternu
arg_countsuactionu	arg_countuargs(uarg_stringsuarg_strings_patternupositionalsuselfutake_action(u//usr/local/python-3.2/lib/python3.2/argparse.pyuconsume_positionals[s	
 ics"g|]}|�kr|�qS(((u.0uindex(ustart_index(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>ys	utoo few argumentsuargument %s is requiredcSs+g|]!}|jtk	rt|��qS((uhelpuSUPPRESSu_get_action_name(u.0uaction((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	u#one of the arguments %s is requiredu i����(ufromfile_prefix_charsuNoneu_read_args_from_filesu_mutually_exclusive_groupsu_group_actionsu	enumerateu
setdefaultuextenduiteruappendu_parse_optionalujoinusetu_get_positional_actionsumaxuminuerroru_u_actionsurequiredu_get_action_nameudefaultu
isinstanceustruhasattrudestugetattrusetattru
_get_value(uselfuarg_stringsu	namespaceumutex_groupu
group_actionsuiumutex_actionu	conflictsuarg_string_pattern_partsuarg_strings_iteru
arg_stringuoption_tupleupatternuconsume_optionaluconsume_positionalsumax_option_string_indexunext_option_string_indexupositionals_end_indexustringsu
stop_indexuactionunameugroupunamesumsg((uaction_conflictsuarg_stringsuarg_strings_patternuextrasu	namespaceuoption_string_indicesupositionalsuseen_actionsuseen_non_default_actionsuselfustart_indexutake_actionu//usr/local/python-3.2/lib/python3.2/argparse.pyu_parse_known_args�s�	#

	
		J
	
		 	
!cCsg}x|D]�}|s-|d|jkr=|j|�q
y�t|dd��}zjg}xA|j�j�D]-}x$|j|�D]}|j|�q�WqrW|j|�}|j|�Wd|j�XWq
t	k
rt
j�d}|jt
|��Yq
Xq
W|S(Nii(ufromfile_prefix_charsuappenduopenureadu
splitlinesuconvert_arg_line_to_argsu_read_args_from_filesuextenducloseuIOErroru_sysuexc_infouerrorustr(uselfuarg_stringsunew_arg_stringsu
arg_stringu	args_fileuarg_lineuarguerr((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_read_args_from_files�s$

cCs|gS(N((uselfuarg_line((u//usr/local/python-3.2/lib/python3.2/argparse.pyuconvert_arg_line_to_args�scCs�|j|�}tj||�}|dkr�itd�d6td�t6td�t6}tdd|j�|j}|j	|j|�}t
||��nt|jd��S(Nuexpected one argumentuexpected at most one argumentuexpected at least one argumentuexpected %s argumentuexpected %s argumentsi(
u_get_nargs_patternu_reumatchuNoneu_uOPTIONALuONE_OR_MOREungettextunargsugetu
ArgumentErrorulenugroup(uselfuactionuarg_strings_patternu
nargs_patternumatchunargs_errorsudefaultumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_match_argument�s

cs�g}x�tt|�dd�D]t}|d|�}dj�fd�|D��}tj||�}|dk	r|jd�|j�D��PqqW|S(Niiucsg|]}�j|��qS((u_get_nargs_pattern(u.0uaction(uself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	cSsg|]}t|��qS((ulen(u.0ustring((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	i����(urangeulenujoinu_reumatchuNoneuextendugroups(uselfuactionsuarg_strings_patternuresultuiu
actions_sliceupatternumatch((uselfu//usr/local/python-3.2/lib/python3.2/argparse.pyu_match_arguments_partial�s
c
Cs||s
dS|d|jkr!dS||jkrJ|j|}||dfSt|�dkr`dSd|kr�|jdd�\}}||jkr�|j|}|||fSn|j|�}t|�dkrdjd�|D��}i|d6|d6}td�}|j||�nt|�dkr=|\}	|	S|j	j
|�r_|js_dSnd	|krodSd|dfS(
Niiu=u, cSsg|]\}}}|�qS(((u.0uactionu
option_stringuexplicit_arg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>$s	uoptionumatchesu4ambiguous option: %(option)s could match %(matches)su (uNoneuprefix_charsu_option_string_actionsulenusplitu_get_option_tuplesujoinu_uerroru_negative_number_matcherumatchu_has_negative_number_optionals(
uselfu
arg_stringuactionu
option_stringuexplicit_argu
option_tuplesuoptionsuargsumsguoption_tuple((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_parse_optionals<



		c
Cs�g}|j}|d|kr�|d|kr�d|krV|jdd�\}}n|}d}x<|jD]A}|j|�rl|j|}|||f}|j|�qlqlWn�|d|kr�|d|kr�|}d}|dd�}|dd�}	x�|jD]y}||krH|j|}|||	f}|j|�q
|j|�r
|j|}|||f}|j|�q
q
Wn|jtd�|�|S(Niiu=iuunexpected option string: %s(uprefix_charsusplituNoneu_option_string_actionsu
startswithuappenduerroru_(
uselfu
option_stringuresultucharsu
option_prefixuexplicit_arguactionutupushort_option_prefixushort_explicit_arg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_option_tuples?s8	 
 

cCs�|j}|dkrd}n�|tkr3d}nk|tkrHd}nV|tkr]d}nA|tkrrd}n,|tkr�d}nddjd	|�}|jr�|j	dd
�}|j	dd
�}n|S(Nu(-*A-*)u(-*A?-*)u	(-*[A-]*)u
(-*A[A-]*)u([-AO]*)u(-*A[-AO]*)u(-*%s-*)u-*uAuu-(
unargsuNoneuOPTIONALuZERO_OR_MOREuONE_OR_MOREu	REMAINDERuPARSERujoinuoption_stringsureplace(uselfuactionunargsu
nargs_pattern((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_nargs_patternks$								cs��jttgkr>y|jd�Wq>tk
r:Yq>Xn|r��jtkr��jri�j}n	�j}t	|t
�r��j�|�}�j�|�q�nM|r��jt
kr��jr��jdk	r��j}n|}�j�|�n�t|�dkrR�jdtgkrR|\}�j�|�}�j�|�n��jtkr}��fd�|D�}ny�jtkr���fd�|D�}�j�|d�n:��fd�|D�}x|D]}�j�|�q�W|S(Nu--ics"g|]}�j�|��qS((u
_get_value(u.0uv(uactionuself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	cs"g|]}�j�|��qS((u
_get_value(u.0uv(uactionuself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	ics"g|]}�j�|��qS((u
_get_value(u.0uv(uactionuself(u//usr/local/python-3.2/lib/python3.2/argparse.pyu
<listcomp>�s	(unargsuPARSERu	REMAINDERuremoveu
ValueErroruOPTIONALuoption_stringsuconstudefaultu
isinstanceustru
_get_valueu_check_valueuZERO_OR_MOREuNoneulen(uselfuactionuarg_stringsuvalueu
arg_stringuv((uactionuselfu//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_values�s>
		
'	
cCs|jd|j|j�}t|�sItd�}t|||��ny||�}Wn�tk
r�t|jdt|j��}tt	j
�d�}t||��Ynittfk
rt|jdt|j��}i|d6|d6}td�}t|||��YnX|S(Nutypeu%r is not callableu__name__iuvalueu!invalid %(type)s value: %(value)r(
u
_registry_getutypeucallableu_u
ArgumentErroruArgumentTypeErrorugetattrureprustru_sysuexc_infou	TypeErroru
ValueError(uselfuactionu
arg_stringu	type_funcumsguresultunameuargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
_get_value�s 
cCsm|jdk	ri||jkrii|d6djtt|j��d6}td�}t|||��ndS(Nuvalueu, uchoicesu3invalid choice: %(value)r (choose from %(choices)s)(uchoicesuNoneujoinumapurepru_u
ArgumentError(uselfuactionuvalueuargsumsg((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_check_value�s

cCs2|j�}|j|j|j|j�|j�S(N(u_get_formatteru	add_usageuusageu_actionsu_mutually_exclusive_groupsuformat_help(uselfu	formatter((u//usr/local/python-3.2/lib/python3.2/argparse.pyu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(u_get_formatteru	add_usageuusageu_actionsu_mutually_exclusive_groupsuadd_textudescriptionu_action_groupsu
start_sectionutitleu
add_argumentsu_group_actionsuend_sectionuepiloguformat_help(uselfu	formatteruaction_group((u//usr/local/python-3.2/lib/python3.2/argparse.pyuformat_help�s
cCsBddl}|jdt�|j�}|j|j�|j�S(NiukThe format_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(uwarningsuwarnuDeprecationWarningu_get_formatteruadd_textuversionuformat_help(uselfuwarningsu	formatter((u//usr/local/python-3.2/lib/python3.2/argparse.pyuformat_version
	scCs|jd|j�S(Nuprog(uformatter_classuprog(uself((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_get_formatter	scCs2|dkrtj}n|j|j�|�dS(N(uNoneu_sysustdoutu_print_messageuformat_usage(uselfufile((u//usr/local/python-3.2/lib/python3.2/argparse.pyuprint_usage	scCs2|dkrtj}n|j|j�|�dS(N(uNoneu_sysustdoutu_print_messageuformat_help(uselfufile((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
print_help"	scCs6ddl}|jdt�|j|j�|�dS(NiujThe print_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(uwarningsuwarnuDeprecationWarningu_print_messageuformat_version(uselfufileuwarnings((u//usr/local/python-3.2/lib/python3.2/argparse.pyu
print_version'	s
cCs2|r.|dkrtj}n|j|�ndS(N(uNoneu_sysustderruwrite(uselfumessageufile((u//usr/local/python-3.2/lib/python3.2/argparse.pyu_print_message/	sicCs-|r|j|tj�ntj|�dS(N(u_print_messageu_sysustderruexit(uselfustatusumessage((u//usr/local/python-3.2/lib/python3.2/argparse.pyuexit8	scCsE|jtj�i|jd6|d6}|jdtd�|�dS(u�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.
        uprogumessageiu%(prog)s: error: %(message)s
N(uprint_usageu_sysustderruproguexitu_(uselfumessageuargs((u//usr/local/python-3.2/lib/python3.2/argparse.pyuerror=	s	NT(#u__name__u
__module__u__doc__uNoneu
HelpFormatteruTrueu__init__u_get_kwargsuadd_subparsersu_add_actionu_get_optional_actionsu_get_positional_actionsu
parse_argsuparse_known_argsu_parse_known_argsu_read_args_from_filesuconvert_arg_line_to_argsu_match_argumentu_match_arguments_partialu_parse_optionalu_get_option_tuplesu_get_nargs_patternu_get_valuesu
_get_valueu_check_valueuformat_usageuformat_helpuformat_versionu_get_formatteruprint_usageu
print_helpu
print_versionu_print_messageuexituerror(u
__locals__((u	__class__u//usr/local/python-3.2/lib/python3.2/argparse.pyuArgumentParser�sR
B					#	�					:	,	,	4					
		(5u__doc__u__version__u__all__ucollectionsu_collectionsucopyu_copyuosu_osureu_reusysu_sysutextwrapu	_textwrapugettextu_ungettextuSUPPRESSuOPTIONALuZERO_OR_MOREuONE_OR_MOREuPARSERu	REMAINDERu_UNRECOGNIZED_ARGS_ATTRuobjectu_AttributeHolderu
_ensure_valueu
HelpFormatteruRawDescriptionHelpFormatteruRawTextHelpFormatteruArgumentDefaultsHelpFormatteru_get_action_nameu	Exceptionu
ArgumentErroruArgumentTypeErroruActionu_StoreActionu_StoreConstActionu_StoreTrueActionu_StoreFalseActionu
_AppendActionu_AppendConstActionu_CountActionu_HelpActionu_VersionActionu_SubParsersActionuFileTypeu	Namespaceu_ActionsContaineru_ArgumentGroupu_MutuallyExclusiveGroupuArgumentParser(((u//usr/local/python-3.2/lib/python3.2/argparse.pyu<module>>sv		
��	
	[#%Y,�4"
© 2025 GrazzMean