Hacked By AnonymousFox

Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/optparse.cpython-33.pyo

�
��f��c@s�dZdZdddddddd	d
ddd
ddddgZdZddlZddlZddlZdd�ZyddlmZm	Z	Wn*e
k
r�dd�Zdd�Z	YnXeZGdd
�d
e�Z
Gdd�de
�ZGdd�de�ZGdd�de
�ZGd d�de
�ZGd!d"�d"e�ZGd#d
�d
�ZGd$d�de�ZGd%d�de�Zd&d'�Zd(d)�Zieed*�fd+6eed*�fd,6eed-�fd.6eed/�fd/6Zd0d1�Zd2d3�Zd4d5fZGd6d�d�Zd7d8Zd7d9Z Gd:d�d�Z!Gd;d�d�Z"Gd<d�de"�Z#Gd=d	�d	e"�Z$d>d?�Z%eZ&dS(@u�A powerful, extensible, and easy-to-use option parser.

By Greg Ward <gward@python.net>

Originally distributed as Optik.

For support, use the optik-users@lists.sourceforge.net mailing list
(http://lists.sourceforge.net/lists/listinfo/optik-users).

Simple usage example:

   from optparse import OptionParser

   parser = OptionParser()
   parser.add_option("-f", "--file", dest="filename",
                     help="write report to FILE", metavar="FILE")
   parser.add_option("-q", "--quiet",
                     action="store_false", dest="verbose", default=True,
                     help="don't print status messages to stdout")

   (options, args) = parser.parse_args()
u1.5.3uOptionumake_optionu
SUPPRESS_HELPuSUPPRESS_USAGEuValuesuOptionContaineruOptionGroupuOptionParseru
HelpFormatteruIndentedHelpFormatteruTitledHelpFormatteru
OptParseErroruOptionErroruOptionConflictErroruOptionValueErroruBadOptionErroru"
Copyright (c) 2001-2006 Gregory P. Ward.  All rights reserved.
Copyright (c) 2002-2006 Python Software Foundation.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

  * Neither the name of the author nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
iNcCsd|jjt|�|fS(Nu<%s at 0x%x: %s>(u	__class__u__name__uid(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_reprNsu_repr(ugettextungettextcCs|S(N((umessage((u-/opt/alt/python33/lib64/python3.3/optparse.pyugettext[sugettextcCs|dkr|S|S(Ni((usingularupluralun((u-/opt/alt/python33/lib64/python3.3/optparse.pyungettext^sungettextcBs,|EeZdZdd�Zdd�ZdS(u
OptParseErrorcCs
||_dS(N(umsg(uselfumsg((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__gsuOptParseError.__init__cCs|jS(N(umsg(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__jsuOptParseError.__str__N(u__name__u
__module__u__qualname__u__init__u__str__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
OptParseErrorfscBs2|EeZdZdZdd�Zdd�ZdS(uOptionErroru]
    Raised if an Option instance is created with invalid or
    inconsistent arguments.
    cCs||_t|�|_dS(N(umsgustru	option_id(uselfumsguoption((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__ts	uOptionError.__init__cCs(|jrd|j|jfS|jSdS(Nu
option %s: %s(u	option_idumsg(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__xs	uOptionError.__str__N(u__name__u
__module__u__qualname__u__doc__u__init__u__str__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionErrornscBs|EeZdZdZdS(uOptionConflictErroruE
    Raised if conflicting options are added to an OptionParser.
    N(u__name__u
__module__u__qualname__u__doc__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionConflictError~scBs|EeZdZdZdS(uOptionValueErroruS
    Raised if an invalid option value is encountered on the command
    line.
    N(u__name__u
__module__u__qualname__u__doc__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionValueError�scBs2|EeZdZdZdd�Zdd�ZdS(uBadOptionErroruB
    Raised if an invalid option is seen on the command line.
    cCs
||_dS(N(uopt_str(uselfuopt_str((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�suBadOptionError.__init__cCstd�|jS(Nuno such option: %s(u_uopt_str(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__�suBadOptionError.__str__N(u__name__u
__module__u__qualname__u__doc__u__init__u__str__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuBadOptionError�scBs2|EeZdZdZdd�Zdd�ZdS(uAmbiguousOptionErroruD
    Raised if an ambiguous option is seen on the command line.
    cCstj||�||_dS(N(uBadOptionErroru__init__u
possibilities(uselfuopt_stru
possibilities((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�suAmbiguousOptionError.__init__cCs#td�|jdj|j�fS(Nuambiguous option: %s (%s?)u, (u_uopt_strujoinu
possibilities(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__�s	uAmbiguousOptionError.__str__N(u__name__u
__module__u__qualname__u__doc__u__init__u__str__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuAmbiguousOptionError�suAmbiguousOptionErrorcBs�|EeZdZdZdZdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!S("u
HelpFormatteru�
    Abstract base class for formatting option help.  OptionParser
    instances should use one of the HelpFormatter subclasses for
    formatting help; by default IndentedHelpFormatter is used.

    Instance attributes:
      parser : OptionParser
        the controlling OptionParser instance
      indent_increment : int
        the number of columns to indent per nesting level
      max_help_position : int
        the maximum starting column for option help text
      help_position : int
        the calculated starting column for option help text;
        initially the same as the maximum
      width : int
        total number of columns for output (pass None to constructor for
        this value to be taken from the $COLUMNS environment variable)
      level : int
        current indentation level
      current_indent : int
        current indentation level (in columns)
      help_width : int
        number of columns available for option help text (calculated)
      default_tag : str
        text to replace with each option's default value, "%default"
        by default.  Set to false value to disable default value expansion.
      option_strings : { Option : str }
        maps Option instances to the snippet of help text explaining
        the syntax of that option, e.g. "-h, --help" or
        "-fFILE, --file=FILE"
      _short_opt_fmt : str
        format string controlling how short options with values are
        printed in help text.  Must be either "%s%s" ("-fFILE") or
        "%s %s" ("-f FILE"), because those are the two syntaxes that
        Optik supports.
      _long_opt_fmt : str
        similar but for long options; must be either "%s %s" ("--file FILE")
        or "%s=%s" ("--file=FILE").
    unonecCs�d|_||_|dkrcyttjd�}Wnttfk
rUd}YnX|d8}n||_t	|t
|d|d��|_|_d|_
d|_d|_||_d|_i|_d|_d|_dS(	NuCOLUMNSiPiiiu%defaultu%s %su%s=%s(uNoneuparseruindent_incrementuintuosuenvironuKeyErroru
ValueErroruwidthuminumaxu
help_positionumax_help_positionucurrent_indentulevelu
help_widthushort_firstudefault_taguoption_stringsu_short_opt_fmtu
_long_opt_fmt(uselfuindent_incrementumax_help_positionuwidthushort_first((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�s$		
	*							uHelpFormatter.__init__cCs
||_dS(N(uparser(uselfuparser((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
set_parser�suHelpFormatter.set_parsercCs4|dkrtd|��nd|d|_dS(Nuu u/invalid metavar delimiter for short options: %ru%s(uu (u
ValueErroru_short_opt_fmt(uselfudelim((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_short_opt_delimiter�su%HelpFormatter.set_short_opt_delimitercCs4|dkrtd|��nd|d|_dS(Nu=u u.invalid metavar delimiter for long options: %ru%s(u=u (u
ValueErroru
_long_opt_fmt(uselfudelim((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_long_opt_delimiter�su$HelpFormatter.set_long_opt_delimitercCs%|j|j7_|jd7_dS(Ni(ucurrent_indentuindent_incrementulevel(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuindent�suHelpFormatter.indentcCs%|j|j8_|jd8_dS(Ni(ucurrent_indentuindent_incrementulevel(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyudedent�suHelpFormatter.dedentcCstd��dS(Nusubclasses must implement(uNotImplementedError(uselfuusage((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_usage�suHelpFormatter.format_usagecCstd��dS(Nusubclasses must implement(uNotImplementedError(uselfuheading((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_headingsuHelpFormatter.format_headingcCsBt|j|jd�}d|j}tj||d|d|�S(u�
        Format a paragraph of free-form text for inclusion in the
        help output at the current indentation level.
        iu uinitial_indentusubsequent_indent(umaxuwidthucurrent_indentutextwrapufill(uselfutextu
text_widthuindent((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_format_texts
	uHelpFormatter._format_textcCs|r|j|�dSdSdS(Nu
u(u_format_text(uselfudescription((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_descriptionsu HelpFormatter.format_descriptioncCs#|rd|j|�dSdSdS(Nu
u(u_format_text(uselfuepilog((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
format_epilogsuHelpFormatter.format_epilogcCsx|jdks|jr |jS|jjj|j�}|tksP|dkr\|j}n|jj	|jt
|��S(N(uparseruNoneudefault_taguhelpudefaultsugetudestu
NO_DEFAULTuNO_DEFAULT_VALUEureplaceustr(uselfuoptionu
default_value((u-/opt/alt/python33/lib64/python3.3/optparse.pyuexpand_defaultsuHelpFormatter.expand_defaultcs,g}�j|}�j�jd}t|�|kr[d�jd|f}�j}nd�jd||f}d}|j|�|jr��j|�}tj|�j	�}|jd|d|df�|j
�fdd�|dd�D��n |d
d	kr|jd	�ndj|�S(Niu%*s%s
uu	%*s%-*s  ics&g|]}d�jd|f�qS(u%*s%s
u(u
help_position(u.0uline(uself(u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>Ds	u/HelpFormatter.format_option.<locals>.<listcomp>iu
i����(uoption_stringsu
help_positionucurrent_indentulenuappenduhelpuexpand_defaultutextwrapuwrapu
help_widthuextendujoin(uselfuoptionuresultuoptsu	opt_widthuindent_firstu	help_textu
help_lines((uselfu-/opt/alt/python33/lib64/python3.3/optparse.pyu
format_option's$

	uHelpFormatter.format_optioncCs|j�d}xI|jD]>}|j|�}||j|<t|t|�|j�}qW|j�x]|jD]R}xI|jD]>}|j|�}||j|<t|t|�|j�}q�WqpW|j�|j�t	|d|j
�|_t|j|jd�|_
dS(Niii(uindentuoption_listuformat_option_stringsuoption_stringsumaxulenucurrent_indentu
option_groupsudedentuminumax_help_positionu
help_positionuwidthu
help_width(uselfuparserumax_lenuoptustringsugroup((u-/opt/alt/python33/lib64/python3.3/optparse.pyustore_option_stringsJs 

 

$

u"HelpFormatter.store_option_stringscs�|j�re|jp!|jj����fdd�|jD�}��fdd�|jD�}n|j}|j}�jr�||}n
||}dj|�S(u@Return a comma-separated list of option strings & metavariables.cs#g|]}�j|�f�qS((u_short_opt_fmt(u.0usopt(umetavaruself(u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>`s	u7HelpFormatter.format_option_strings.<locals>.<listcomp>cs#g|]}�j|�f�qS((u
_long_opt_fmt(u.0ulopt(umetavaruself(u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>bs	u, (utakes_valueumetavarudestuupperu_short_optsu
_long_optsushort_firstujoin(uselfuoptionu
short_optsu	long_optsuopts((umetavaruselfu-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_option_strings\s
			

u#HelpFormatter.format_option_stringsN(u__name__u
__module__u__qualname__u__doc__uNO_DEFAULT_VALUEu__init__u
set_parseruset_short_opt_delimiteruset_long_opt_delimiteruindentudedentuformat_usageuformat_headingu_format_textuformat_descriptionu
format_epiloguexpand_defaultu
format_optionustore_option_stringsuformat_option_strings(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
HelpFormatter�s")
#cBsJ|EeZdZdZdddddd�Zdd�Zd	d
�ZdS(uIndentedHelpFormatteru.Format help with indented section bodies.
    iiicCstj|||||�dS(N(u
HelpFormatteru__init__(uselfuindent_incrementumax_help_positionuwidthushort_first((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__ssuIndentedHelpFormatter.__init__cCstd�|S(Nu
Usage: %s
(u_(uselfuusage((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_usage{su"IndentedHelpFormatter.format_usagecCsd|jd|fS(Nu%*s%s:
u(ucurrent_indent(uselfuheading((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_heading~su$IndentedHelpFormatter.format_headingN(u__name__u
__module__u__qualname__u__doc__uNoneu__init__uformat_usageuformat_heading(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuIndentedHelpFormatteroscBsJ|EeZdZdZddd
ddd�Zdd�Zdd	�Zd
S(uTitledHelpFormatteru1Format help with underlined section headers.
    iicCstj|||||�dS(N(u
HelpFormatteru__init__(uselfuindent_incrementumax_help_positionuwidthushort_first((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�suTitledHelpFormatter.__init__cCsd|jtd��|fS(Nu%s  %s
uUsage(uformat_headingu_(uselfuusage((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_usage�su TitledHelpFormatter.format_usagecCsd|d|jt|�fS(Nu%s
%s
u=-(ulevelulen(uselfuheading((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_heading�su"TitledHelpFormatter.format_headingN(u__name__u
__module__u__qualname__u__doc__uNoneu__init__uformat_usageuformat_heading(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuTitledHelpFormatter�scCs�|dd�j�dkr%d}n`|dd�j�dkr`d}|dd�pZd}n%|dd�dkrd}nd}|||�S(	Niu0xiu0bu0iii
(ulower(uvalutypeuradix((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_parse_num�s		u
_parse_numcCs
t|t�S(N(u
_parse_numuint(uval((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_parse_int�su
_parse_intuintegeruintulongufloating-pointufloatucomplexcCsYt|j\}}y||�SWn1tk
rTttd�|||f��YnXdS(Nuoption %s: invalid %s value: %r(u_builtin_cvtutypeu
ValueErroruOptionValueErroru_(uoptionuoptuvalueucvtuwhat((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
check_builtin�s
u
check_builtincCsQ||jkr|Sdjtt|j��}ttd�|||f��dS(Nu, u.option %s: invalid choice: %r (choose from %s)(uchoicesujoinumapurepruOptionValueErroru_(uoptionuoptuvalueuchoices((u-/opt/alt/python33/lib64/python3.3/optparse.pyucheck_choice�s	ucheck_choiceuNOuDEFAULTcBs�|EeZdZdZdddddddd	d
ddd
gZdAZdBZdCZdDZdEZ	dFZ
ied6ed6ed6ed6ed6Z
d@Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�ZeeeeeeegZd2d3�ZeZd4d5�Zd6d7�Zd8d9�Z d:d;�Z!d<d=�Z"d>d?�Z#d@S(GuOptionur
    Instance attributes:
      _short_opts : [string]
      _long_opts : [string]

      action : string
      type : string
      dest : string
      default : any
      nargs : int
      const : any
      choices : [string]
      callback : function
      callback_args : (any*)
      callback_kwargs : { string : any }
      help : string
      metavar : string
    uactionutypeudestudefaultunargsuconstuchoicesucallbacku
callback_argsucallback_kwargsuhelpumetavarustoreustore_constu
store_trueustore_falseuappenduappend_constucountuversionustringuintulongufloatucomplexuchoicecOs]g|_g|_|j|�}|j|�|j|�x|jD]}||�qEWdS(N(u_short_optsu
_long_optsu_check_opt_stringsu_set_opt_stringsu
_set_attrsu
CHECK_METHODS(uselfuoptsuattrsuchecker((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__3s		

uOption.__init__cCs,dd�|D�}|s(td��n|S(NcSsg|]}|r|�qS(((u.0uopt((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>Js	u-Option._check_opt_strings.<locals>.<listcomp>u+at least one option string must be supplied(u	TypeError(uselfuopts((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_opt_stringsFsuOption._check_opt_stringscCs�x�|D]�}t|�dkr5td||��qt|�dkr�|ddkod|ddks}td||��n|jj|�q|dd�dko�|ddks�td||��n|jj|�qWdS(	Niu>invalid option string %r: must be at least two characters longiu-iuMinvalid short option string %r: must be of the form -x, (x any non-dash char)u--uGinvalid long option string %r: must start with --, followed by non-dash(ulenuOptionErroru_short_optsuappendu
_long_opts(uselfuoptsuopt((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_set_opt_stringsOs$
 &uOption._set_opt_stringscCs�xj|jD]_}||kr:t||||�||=q
|dkrYt||t�q
t||d�q
W|r�t|j��}tddj|�|��ndS(Nudefaultuinvalid keyword arguments: %su, (uATTRSusetattru
NO_DEFAULTuNoneusortedukeysuOptionErrorujoin(uselfuattrsuattr((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_set_attrsds
uOption._set_attrscCsJ|jdkrd|_n+|j|jkrFtd|j|��ndS(Nustoreuinvalid action: %r(uactionuNoneuACTIONSuOptionError(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_check_actionwsuOption._check_actioncCs�|jdkrK|j|jkr�|jdk	r<d|_qHd|_q�n�t|jt�ro|jj|_n|jdkr�d|_n|j|jkr�td|j|��n|j|j	kr�td|j|��ndS(Nuchoiceustringustruinvalid option type: %ru$must not supply a type for action %r(
utypeuNoneuactionuALWAYS_TYPED_ACTIONSuchoicesu
isinstanceu__name__uTYPESuOptionErroru
TYPED_ACTIONS(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_type}suOption._check_typecCs�|jdkr}|jdkr0td|��q�t|jttf�s�tdtt|j��jd�d|��q�n(|jdk	r�td|j|��ndS(Nuchoiceu/must supply a list of choices for type 'choice'u1choices must be a list of strings ('%s' supplied)u'iu#must not supply choices for type %r(	utypeuchoicesuNoneuOptionErroru
isinstanceutupleulistustrusplit(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_check_choice�s/uOption._check_choicecCs�|j|jkp|jdk	}|jdkr|r|jrh|jddd�jdd�|_q|jdd|_ndS(Niiu-u_i(uactionu
STORE_ACTIONSutypeuNoneudestu
_long_optsureplaceu_short_opts(uselfutakes_value((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_dest�s	)uOption._check_destcCs>|j|jkr:|jdk	r:td|j|��ndS(Nu*'const' must not be supplied for action %r(uactionu
CONST_ACTIONSuconstuNoneuOptionError(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_const�s!
uOption._check_constcCs\|j|jkr0|jdkrXd|_qXn(|jdk	rXtd|j|��ndS(Niu*'nargs' must not be supplied for action %r(uactionu
TYPED_ACTIONSunargsuNoneuOptionError(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_nargs�s
uOption._check_nargscCs|jdkr�t|j�s7td|j|��n|jdk	rrt|jt�rrtd|j|��n|jdk	rt|jt	�rtd|j|��qnj|jdk	r�td|j|��n|jdk	r�td|��n|jdk	rtd|��ndS(Nucallbackucallback not callable: %ru3callback_args, if supplied, must be a tuple: not %ru4callback_kwargs, if supplied, must be a dict: not %ru.callback supplied (%r) for non-callback optionu.callback_args supplied for non-callback optionu0callback_kwargs supplied for non-callback option(
uactionucallableucallbackuOptionErroru
callback_argsuNoneu
isinstanceutupleucallback_kwargsudict(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_callback�s0uOption._check_callbackcCsdj|j|j�S(Nu/(ujoinu_short_optsu
_long_opts(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__�suOption.__str__cCs
|jdk	S(N(utypeuNone(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyutakes_value�suOption.takes_valuecCs#|jr|jdS|jdSdS(Ni(u
_long_optsu_short_opts(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_opt_string�s	uOption.get_opt_stringcCs9|jj|j�}|dkr%|S||||�SdS(N(uTYPE_CHECKERugetutypeuNone(uselfuoptuvalueuchecker((u-/opt/alt/python33/lib64/python3.3/optparse.pyucheck_value�suOption.check_valuecsR|dk	rN�jdkr+�j�|�St��fdd�|D��SndS(Nics"g|]}�j�|��qS((ucheck_value(u.0uv(uoptuself(u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>s	u(Option.convert_value.<locals>.<listcomp>(uNoneunargsucheck_valueutuple(uselfuoptuvalue((uoptuselfu-/opt/alt/python33/lib64/python3.3/optparse.pyu
convert_value�suOption.convert_valuecCs4|j||�}|j|j|j||||�S(N(u
convert_valueutake_actionuactionudest(uselfuoptuvalueuvaluesuparser((u-/opt/alt/python33/lib64/python3.3/optparse.pyuprocesssuOption.processc		Cs�|dkrt|||�n�|dkrAt|||j�nb|dkr`t||d�nC|dkrt||d�n$|dkr�|j|g�j|�n�|dkr�|j|g�j|j�n�|dkrt|||j|d�d	�n�|d
krJ|jpf}|jp(i}|j||||||�nY|dkrm|j	�|j
�n6|dkr�|j�|j
�ntd
|j
��d	S(Nustoreustore_constu
store_trueustore_falseuappenduappend_constucountiiucallbackuhelpuversionuunknown action %rTF(usetattruconstuTrueuFalseuensure_valueuappendu
callback_argsucallback_kwargsucallbacku
print_helpuexitu
print_versionu
ValueErroruaction(	uselfuactionudestuoptuvalueuvaluesuparseruargsukwargs((u-/opt/alt/python33/lib64/python3.3/optparse.pyutake_actions4#



uOption.take_actionN(
ustoreustore_constu
store_trueustore_falseuappenduappend_constucountucallbackuhelpuversion(ustoreustore_constu
store_trueustore_falseuappenduappend_constucount(ustoreuappenducallback(ustoreuappend(ustore_constuappend_const(ustringuintulongufloatucomplexuchoice($u__name__u
__module__u__qualname__u__doc__uATTRSuACTIONSu
STORE_ACTIONSu
TYPED_ACTIONSuALWAYS_TYPED_ACTIONSu
CONST_ACTIONSuTYPESu
check_builtinucheck_choiceuTYPE_CHECKERuNoneu
CHECK_METHODSu__init__u_check_opt_stringsu_set_opt_stringsu
_set_attrsu
_check_actionu_check_typeu
_check_choiceu_check_destu_check_constu_check_nargsu_check_callbacku__str__u_repru__repr__utakes_valueuget_opt_stringucheck_valueu
convert_valueuprocessutake_action(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOption�s�	

	
			uSUPPRESSuHELPuUSAGEcBs�|EeZdZddd�Zdd�ZeZdd�Zdd�Z	d	d
�Z
dd�Zd
dd�Zd
dd�Z
dd�ZdS(uValuescCs:|r6x-|j�D]\}}t|||�qWndS(N(uitemsusetattr(uselfudefaultsuattruval((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__8suValues.__init__cCs
t|j�S(N(ustru__dict__(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__str__=suValues.__str__cCsCt|t�r|j|jkSt|t�r;|j|kStSdS(N(u
isinstanceuValuesu__dict__udictuNotImplemented(uselfuother((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__eq__Bs

u
Values.__eq__cCsSxLt|�D]>}||kr
||}|dk	rKt|||�qKq
q
WdS(u�
        Update the option values from an arbitrary dictionary, but only
        use keys from dict that already have a corresponding attribute
        in self.  Any keys in dict without a corresponding attribute
        are silently ignored.
        N(udiruNoneusetattr(uselfudictuattrudval((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_update_carefulJs

uValues._update_carefulcCs|jj|�dS(u�
        Update the option values from an arbitrary dictionary,
        using all keys from the dictionary regardless of whether
        they have a corresponding attribute in self or not.
        N(u__dict__uupdate(uselfudict((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_update_looseWsuValues._update_loosecCsL|dkr|j|�n,|dkr8|j|�ntd|��dS(Nucarefululooseuinvalid update mode: %r(u_update_carefulu
_update_looseu
ValueError(uselfudictumode((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_update_s
uValues._updateucarefulcCs1t|�tj|}|jt|�|�dS(N(u
__import__usysumodulesu_updateuvars(uselfumodnameumodeumod((u-/opt/alt/python33/lib64/python3.3/optparse.pyuread_modulegs

uValues.read_modulecCs3i}tt|�j�|�|j||�dS(N(uexecuopenureadu_update(uselfufilenameumodeuvars((u-/opt/alt/python33/lib64/python3.3/optparse.pyu	read_filelsuValues.read_filecCsEt||�s%t||�dkr8t|||�nt||�S(N(uhasattrugetattruNoneusetattr(uselfuattruvalue((u-/opt/alt/python33/lib64/python3.3/optparse.pyuensure_valueqs%uValues.ensure_valueN(u__name__u
__module__u__qualname__uNoneu__init__u__str__u_repru__repr__u__eq__u_update_carefulu
_update_looseu_updateuread_moduleu	read_fileuensure_value(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuValues6s
cBs�|EeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"S(#uOptionContaineru�
    Abstract base class.

    Class attributes:
      standard_option_list : [Option]
        list of standard options that will be accepted by all instances
        of this parser class (intended to be overridden by subclasses).

    Instance attributes:
      option_list : [Option]
        the list of Option objects contained by this OptionContainer
      _short_opt : { string : Option }
        dictionary mapping short option strings, eg. "-f" or "-X",
        to the Option instances that implement them.  If an Option
        has multiple short option strings, it will appears in this
        dictionary multiple times. [1]
      _long_opt : { string : Option }
        dictionary mapping long option strings, eg. "--file" or
        "--exclude", to the Option instances that implement them.
        Again, a given Option can occur multiple times in this
        dictionary. [1]
      defaults : { string : any }
        dictionary mapping option destination names to default
        values for each destination [1]

    [1] These mappings are common to (shared by) all components of the
        controlling OptionParser, where they are initially created.

    cCs1|j�||_|j|�|j|�dS(N(u_create_option_listuoption_classuset_conflict_handleruset_description(uselfuoption_classuconflict_handlerudescription((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�s
	
uOptionContainer.__init__cCsi|_i|_i|_dS(N(u
_short_optu	_long_optudefaults(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_create_option_mappings�s		u'OptionContainer._create_option_mappingscCs(|j|_|j|_|j|_dS(N(u
_short_optu	_long_optudefaults(uselfuparser((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_share_option_mappings�su&OptionContainer._share_option_mappingscCs,|dkrtd|��n||_dS(Nuerroruresolveu$invalid conflict_resolution value %r(uerroruresolve(u
ValueErroruconflict_handler(uselfuhandler((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_conflict_handler�su$OptionContainer.set_conflict_handlercCs
||_dS(N(udescription(uselfudescription((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_description�suOptionContainer.set_descriptioncCs|jS(N(udescription(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_description�suOptionContainer.get_descriptioncCs|`|`|`dS(usee OptionParser.destroy().N(u
_short_optu	_long_optudefaults(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyudestroy�suOptionContainer.destroycCshg}x=|jD]2}||jkr|j||j|f�qqWx=|jD]2}||jkrP|j||j|f�qPqPW|rd|j}|dkr�tddjdd�|D��|��qd|dkrdx�|D]z\}}|jd�r|jj	|�|j|=n|jj	|�|j|=|jpA|js�|j
jj	|�q�q�WqdndS(Nuerroru conflicting option string(s): %su, cSsg|]}|d�qS(i((u.0uco((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>�s	u3OptionContainer._check_conflict.<locals>.<listcomp>uresolveu--(u_short_optsu
_short_optuappendu
_long_optsu	_long_optuconflict_handleruOptionConflictErrorujoinu
startswithuremoveu	containeruoption_list(uselfuoptionu
conflict_optsuoptuhandleruc_option((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_check_conflict�s.!!	

uOptionContainer._check_conflictcOsDt|dt�r(|j||�}nTt|�dkrp|rp|d}t|t�s|td|��q|ntd��|j|�|jj|�||_	x|j
D]}||j|<q�Wx|jD]}||j
|<q�W|jdk	r@|jtk	r|j|j|j<q@|j|jkr@d|j|j<q@n|S(uOadd_option(Option)
           add_option(opt_str, ..., kwarg=val, ...)
        iiunot an Option instance: %ruinvalid argumentsN(u
isinstanceustruoption_classulenuOptionu	TypeErroru_check_conflictuoption_listuappendu	containeru_short_optsu
_short_optu
_long_optsu	_long_optudestuNoneudefaultu
NO_DEFAULTudefaults(uselfuargsukwargsuoptionuopt((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
add_option�s(

	uOptionContainer.add_optioncCs"x|D]}|j|�qWdS(N(u
add_option(uselfuoption_listuoption((u-/opt/alt/python33/lib64/python3.3/optparse.pyuadd_optionss
uOptionContainer.add_optionscCs"|jj|�p!|jj|�S(N(u
_short_optugetu	_long_opt(uselfuopt_str((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
get_optionsuOptionContainer.get_optioncCs||jkp||jkS(N(u
_short_optu	_long_opt(uselfuopt_str((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
has_option
suOptionContainer.has_optioncCs�|jj|�}|dkr3|jj|�}n|dkrRtd|��nx|jD]}|j|=q\Wx|jD]}|j|=qzW|jjj	|�dS(Nuno such option %r(
u
_short_optugetuNoneu	_long_optu
ValueErroru_short_optsu
_long_optsu	containeruoption_listuremove(uselfuopt_struoptionuopt((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
remove_optionsuOptionContainer.remove_optioncCs\|js
dSg}x9|jD].}|jtk	r|j|j|��qqWdj|�S(Nu(uoption_listuhelpu
SUPPRESS_HELPuappendu
format_optionujoin(uselfu	formatteruresultuoption((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_option_helps	u"OptionContainer.format_option_helpcCs|j|j��S(N(uformat_descriptionuget_description(uselfu	formatter((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_description'su"OptionContainer.format_descriptioncCsWg}|jr(|j|j|��n|jrJ|j|j|��ndj|�S(Nu
(udescriptionuappenduformat_descriptionuoption_listuformat_option_helpujoin(uselfu	formatteruresult((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_help*s		uOptionContainer.format_helpN(u__name__u
__module__u__qualname__u__doc__u__init__u_create_option_mappingsu_share_option_mappingsuset_conflict_handleruset_descriptionuget_descriptionudestroyu_check_conflictu
add_optionuadd_optionsu
get_optionu
has_optionu
remove_optionuformat_option_helpuformat_descriptionuformat_help(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionContainerws"			cBsS|EeZdZddd�Zdd�Zdd�Zdd�Zd	d
�ZdS(uOptionGroupcCs2||_tj||j|j|�||_dS(N(uparseruOptionContaineru__init__uoption_classuconflict_handlerutitle(uselfuparserutitleudescription((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__5s	uOptionGroup.__init__cCsg|_|j|j�dS(N(uoption_listu_share_option_mappingsuparser(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_create_option_list;s	uOptionGroup._create_option_listcCs
||_dS(N(utitle(uselfutitle((u-/opt/alt/python33/lib64/python3.3/optparse.pyu	set_title?suOptionGroup.set_titlecCstj|�|`dS(usee OptionParser.destroy().N(uOptionContainerudestroyuoption_list(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyudestroyBs
uOptionGroup.destroycCs@|j|j�}|j�|tj||�7}|j�|S(N(uformat_headingutitleuindentuOptionContaineruformat_helpudedent(uselfu	formatteruresult((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_helpIs


uOptionGroup.format_helpN(	u__name__u
__module__u__qualname__uNoneu__init__u_create_option_listu	set_titleudestroyuformat_help(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionGroup3s
cBs|EeZdZdZgZdNdNedNddNdNdOdNdNdd�
Zdd�Z	dd�Z
d	d
�Zdd�ZdOd
d�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�ZdNdNd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Z d5d6�Z!d7d8�Z"d9dNd:d;�Z#d<d=�Z$d>d?�Z%dNd@dA�Z&dBdC�Z'dNdDdE�Z(dNdFdG�Z)dHdI�Z*dNdJdK�Z+dNdLdM�Z,dNS(PuOptionParseru$
    Class attributes:
      standard_option_list : [Option]
        list of standard options that will be accepted by all instances
        of this parser class (intended to be overridden by subclasses).

    Instance attributes:
      usage : string
        a usage string for your program.  Before it is displayed
        to the user, "%prog" will be expanded to the name of
        your program (self.prog or os.path.basename(sys.argv[0])).
      prog : string
        the name of the current program (to override
        os.path.basename(sys.argv[0])).
      description : string
        A paragraph of text giving a brief overview of your program.
        optparse reformats this paragraph to fit the current terminal
        width and prints it when the user requests help (after usage,
        but before the list of options).
      epilog : string
        paragraph of help text to print after option help

      option_groups : [OptionGroup]
        list of option groups in this parser (option groups are
        irrelevant for parsing the command-line, but very useful
        for generating help)

      allow_interspersed_args : bool = true
        if true, positional arguments may be interspersed with options.
        Assuming -a and -b each take a single argument, the command-line
          -ablah foo bar -bboo baz
        will be interpreted the same as
          -ablah -bboo -- foo bar baz
        If this flag were false, that command line would be interpreted as
          -ablah -- foo bar -bboo baz
        -- ie. we stop processing options as soon as we see the first
        non-option argument.  (This is the tradition followed by
        Python's getopt module, Perl's Getopt::Std, and other argument-
        parsing libraries, but it is generally annoying to users.)

      process_default_values : bool = true
        if true, option default values are processed similarly to option
        values from the command line: that is, they are passed to the
        type-checking function for the option's type (as long as the
        default value is a string).  (This really only matters if you
        have defined custom types; see SF bug #955889.)  Set it to false
        to restore the behaviour of Optik 1.4.1 and earlier.

      rargs : [string]
        the argument list currently being parsed.  Only set when
        parse_args() is active, and continually trimmed down as
        we consume arguments.  Mainly there for the benefit of
        callback options.
      largs : [string]
        the list of leftover arguments that we have skipped while
        parsing options.  If allow_interspersed_args is false, this
        list is always empty.
      values : Values
        the set of option values currently being accumulated.  Only
        set when parse_args() is active.  Also mainly for callbacks.

    Because of the 'rargs', 'largs', and 'values' attributes,
    OptionParser is not thread-safe.  If, for some perverse reason, you
    need to parse command-line arguments simultaneously in different
    threads, use different OptionParser instances.

    uerrorcCs�tj||||�|j|�|	|_||_d|_d|_|dkr_t	�}n||_
|j
j|�|
|_|j
|d|�|j�dS(Nuadd_helpT(uOptionContaineru__init__u	set_usageuproguversionuTrueuallow_interspersed_argsuprocess_default_valuesuNoneuIndentedHelpFormatteru	formatteru
set_parseruepilogu_populate_option_listu_init_parsing_state(uselfuusageuoption_listuoption_classuversionuconflict_handlerudescriptionu	formatteruadd_help_optionuproguepilog((u-/opt/alt/python33/lib64/python3.3/optparse.pyu__init__�s
						uOptionParser.__init__cCsAtj|�x|jD]}|j�qW|`|`|`dS(u
        Declare that you are done with this OptionParser.  This cleans up
        reference cycles so the OptionParser (and all objects referenced by
        it) can be garbage-collected promptly.  After calling destroy(), the
        OptionParser is unusable.
        N(uOptionContainerudestroyu
option_groupsuoption_listu	formatter(uselfugroup((u-/opt/alt/python33/lib64/python3.3/optparse.pyudestroy�s
uOptionParser.destroycCs g|_g|_|j�dS(N(uoption_listu
option_groupsu_create_option_mappings(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_create_option_list�s		u OptionParser._create_option_listcCs&|jdddddtd��dS(Nu-hu--helpuactionuhelpushow this help message and exit(u
add_optionu_(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_add_help_option�suOptionParser._add_help_optioncCs#|jddddtd��dS(Nu	--versionuactionuversionuhelpu&show program's version number and exit(u
add_optionu_(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_add_version_option�su OptionParser._add_version_optioncCs_|jr|j|j�n|r2|j|�n|jrH|j�n|r[|j�ndS(N(ustandard_option_listuadd_optionsuversionu_add_version_optionu_add_help_option(uselfuoption_listuadd_help((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_populate_option_list�s		
u"OptionParser._populate_option_listcCsd|_d|_d|_dS(N(uNoneurargsulargsuvalues(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_init_parsing_state�s		u OptionParser._init_parsing_statecCsn|dkrtd�|_nL|tkr6d|_n4|j�jd�ra|dd�|_n	||_dS(Nu%prog [options]uusage: i(uNoneu_uusageuSUPPRESS_USAGEuloweru
startswith(uselfuusage((u-/opt/alt/python33/lib64/python3.3/optparse.pyu	set_usage�suOptionParser.set_usagecCs
d|_dS(uSet parsing to not stop on the first non-option, allowing
        interspersing switches with command arguments. This is the
        default behavior. See also disable_interspersed_args() and the
        class documentation description of the attribute
        allow_interspersed_args.NT(uTrueuallow_interspersed_args(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuenable_interspersed_args�su%OptionParser.enable_interspersed_argscCs
d|_dS(u�Set parsing to stop on the first non-option. Use this if
        you have a command processor which runs another command that
        has options of its own and you want to make sure these options
        don't get confused.
        NF(uFalseuallow_interspersed_args(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyudisable_interspersed_argssu&OptionParser.disable_interspersed_argscCs
||_dS(N(uprocess_default_values(uselfuprocess((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_process_default_values
su'OptionParser.set_process_default_valuescCs||j|<dS(N(udefaults(uselfudestuvalue((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_default
suOptionParser.set_defaultcKs|jj|�dS(N(udefaultsuupdate(uselfukwargs((u-/opt/alt/python33/lib64/python3.3/optparse.pyuset_defaultssuOptionParser.set_defaultscCs;|jdd�}x!|jD]}|j|j�qW|S(N(uoption_listu
option_groupsuextend(uselfuoptionsugroup((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_get_all_optionssuOptionParser._get_all_optionscCs�|jst|j�S|jj�}x]|j�D]O}|j|j�}t|t�r2|j	�}|j
||�||j<q2q2Wt|�S(N(uprocess_default_valuesuValuesudefaultsucopyu_get_all_optionsugetudestu
isinstanceustruget_opt_stringucheck_value(uselfudefaultsuoptionudefaultuopt_str((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_default_valuess	
 uOptionParser.get_default_valuescOs�t|dt�r(t|||�}nrt|�dkr�|r�|d}t|t�smtd|��n|j|k	r�td��q�ntd��|jj|�|S(Niiunot an OptionGroup instance: %ru"invalid OptionGroup (wrong parser)uinvalid arguments(	u
isinstanceustruOptionGroupulenu	TypeErroruparseru
ValueErroru
option_groupsuappend(uselfuargsukwargsugroup((u-/opt/alt/python33/lib64/python3.3/optparse.pyuadd_option_group*s
uOptionParser.add_option_groupcCsD|jj|�p!|jj|�}|r@|j|k	r@|jSdS(N(u
_short_optugetu	_long_optu	containeruNone(uselfuopt_struoption((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_option_group:s
uOptionParser.get_option_groupcCs/|dkrtjdd�S|dd�SdS(Ni(uNoneusysuargv(uselfuargs((u-/opt/alt/python33/lib64/python3.3/optparse.pyu	_get_argsDsuOptionParser._get_argscCs�|j|�}|dkr*|j�}n||_g|_}||_y|j|||�}Wn>ttfk
r�}z|j	t
|��WYdd}~XnX||}|j||�S(uS
        parse_args(args : [string] = sys.argv[1:],
                   values : Values = None)
        -> (values : Values, args : [string])

        Parse the command-line options found in 'args' (default:
        sys.argv[1:]).  Any errors result in a call to 'error()', which
        by default prints the usage message to stderr and calls
        sys.exit() with an error message.  On success returns a pair
        (values, args) where 'values' is an Values instance (with all
        your option values) and 'args' is the list of arguments left
        over after parsing options.
        N(u	_get_argsuNoneuget_default_valuesurargsulargsuvaluesu
_process_argsuBadOptionErroruOptionValueErroruerrorustrucheck_values(uselfuargsuvaluesurargsulargsustopuerr((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
parse_argsJs	
	&
uOptionParser.parse_argscCs
||fS(u�
        check_values(values : Values, args : [string])
        -> (values : Values, args : [string])

        Check that the supplied option values and leftover arguments are
        valid.  Returns the option values and leftover arguments
        (possibly adjusted, possibly completely new -- whatever you
        like).  Default implementation just returns the passed-in
        values; subclasses may override as desired.
        ((uselfuvaluesuargs((u-/opt/alt/python33/lib64/python3.3/optparse.pyucheck_valuesqsuOptionParser.check_valuescCs�x�|r�|d}|dkr*|d=dS|dd�dkrS|j||�q|dd�dkr�t|�dkr�|j||�q|jr�|j|�|d=qdSqWdS(u�_process_args(largs : [string],
                         rargs : [string],
                         values : Values)

        Process command-line arguments and populate 'values', consuming
        options and arguments from 'rargs'.  If 'allow_interspersed_args' is
        false, stop at the first non-option argument.  If true, accumulate any
        interspersed non-option arguments in 'largs'.
        iu--Niiu-(u_process_long_optulenu_process_short_optsuallow_interspersed_argsuappend(uselfulargsurargsuvaluesuarg((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
_process_args~s
	
(	

uOptionParser._process_argscCst||j�S(u_match_long_opt(opt : string) -> string

        Determine which long option string 'opt' matches, ie. which one
        it is an unambiguous abbreviation for.  Raises BadOptionError if
        'opt' doesn't unambiguously match any long option string.
        (u
_match_abbrevu	_long_opt(uselfuopt((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_match_long_opt�suOptionParser._match_long_optc
CsM|jd�}d|krL|jdd�\}}|jd|�d	}n|}d
}|j|�}|j|}|j�r
|j}t	|�|kr�|j
tdd|�i|d6|d6�q3|dkr�|jd�}	q3t|d|��}	|d|�=n&|r-|j
t
d�|�nd}	|j||	||�dS(Niu=iu.%(option)s option requires %(number)d argumentu/%(option)s option requires %(number)d argumentsuoptionunumberu%s option does not take a valueTF(upopusplituinsertuTrueuFalseu_match_long_optu	_long_optutakes_valueunargsulenuerrorungettextutupleu_uNoneuprocess(
uselfurargsuvaluesuarguoptunext_arguhad_explicit_valueuoptionunargsuvalue((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_process_long_opt�s0	
		uOptionParser._process_long_optcCsi|jd�}d}d}xG|dd�D]5}d|}|jj|�}|d7}|smt|��n|j�r;|t|�kr�|jd||d��d	}n|j	}	t|�|	kr�|j
tdd|	�i|d6|	d6�qA|	dkr|jd�}
qAt|d|	��}
|d|	�=nd}
|j||
||�|r,Pq,q,WdS(
Niiu-u.%(option)s option requires %(number)d argumentu/%(option)s option requires %(number)d argumentsuoptionunumberFT(upopuFalseu
_short_optugetuBadOptionErrorutakes_valueulenuinsertuTrueunargsuerrorungettextutupleuNoneuprocess(uselfurargsuvaluesuargustopuiuchuoptuoptionunargsuvalue((u-/opt/alt/python33/lib64/python3.3/optparse.pyu_process_short_opts�s6

			u OptionParser._process_short_optscCs1|jdkr&tjjtjd�S|jSdS(Ni(uproguNoneuosupathubasenameusysuargv(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
get_prog_namesuOptionParser.get_prog_namecCs|jd|j��S(Nu%prog(ureplaceu
get_prog_name(uselfus((u-/opt/alt/python33/lib64/python3.3/optparse.pyuexpand_prog_name
suOptionParser.expand_prog_namecCs|j|j�S(N(uexpand_prog_nameudescription(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_descriptionsuOptionParser.get_descriptionicCs*|rtjj|�ntj|�dS(N(usysustderruwriteuexit(uselfustatusumsg((u-/opt/alt/python33/lib64/python3.3/optparse.pyuexitsuOptionParser.exitcCs4|jtj�|jdd|j�|f�dS(u�error(msg : string)

        Print a usage message incorporating 'msg' to stderr and exit.
        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
        iu%s: error: %s
N(uprint_usageusysustderruexitu
get_prog_name(uselfumsg((u-/opt/alt/python33/lib64/python3.3/optparse.pyuerrorsuOptionParser.errorcCs-|jr%|jj|j|j��SdSdS(Nu(uusageu	formatteruformat_usageuexpand_prog_name(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyu	get_usage"s		uOptionParser.get_usagecCs&|jr"t|j�d|�ndS(uaprint_usage(file : file = stdout)

        Print the usage message for the current program (self.usage) to
        'file' (default stdout).  Any occurrence of the string "%prog" in
        self.usage is replaced with the name of the current program
        (basename of sys.argv[0]).  Does nothing if self.usage is empty
        or not defined.
        ufileN(uusageuprintu	get_usage(uselfufile((u-/opt/alt/python33/lib64/python3.3/optparse.pyuprint_usage)s		uOptionParser.print_usagecCs!|jr|j|j�SdSdS(Nu(uversionuexpand_prog_name(uself((u-/opt/alt/python33/lib64/python3.3/optparse.pyuget_version5s	uOptionParser.get_versioncCs&|jr"t|j�d|�ndS(uEprint_version(file : file = stdout)

        Print the version message for this program (self.version) to
        'file' (default stdout).  As with print_usage(), any occurrence
        of "%prog" in self.version is replaced by the current program's
        name.  Does nothing if self.version is empty or undefined.
        ufileN(uversionuprintuget_version(uselfufile((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
print_version;s	uOptionParser.print_versioncCs�|dkr|j}n|j|�g}|j|jtd���|j�|jr�|jtj	||��|jd�nx4|j
D])}|j|j|��|jd�q�W|j�dj
|dd��S(NuOptionsu
uii����(uNoneu	formatterustore_option_stringsuappenduformat_headingu_uindentuoption_listuOptionContaineruformat_option_helpu
option_groupsuformat_helpudedentujoin(uselfu	formatteruresultugroup((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_option_helpFs

	
uOptionParser.format_option_helpcCs|j|j�S(N(u
format_epiloguepilog(uselfu	formatter((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
format_epilogWsuOptionParser.format_epilogcCs�|dkr|j}ng}|jrA|j|j�d�n|jrg|j|j|�d�n|j|j|��|j|j|��dj	|�S(Nu
u(
uNoneu	formatteruusageuappendu	get_usageudescriptionuformat_descriptionuformat_option_helpu
format_epilogujoin(uselfu	formatteruresult((u-/opt/alt/python33/lib64/python3.3/optparse.pyuformat_helpZs		uOptionParser.format_helpcCs/|dkrtj}n|j|j��dS(u�print_help(file : file = stdout)

        Print an extended help message, listing all options and any
        help text provided with them, to 'file' (default stdout).
        N(uNoneusysustdoutuwriteuformat_help(uselfufile((u-/opt/alt/python33/lib64/python3.3/optparse.pyu
print_helpfsuOptionParser.print_helpNT(-u__name__u
__module__u__qualname__u__doc__ustandard_option_listuNoneuOptionuTrueu__init__udestroyu_create_option_listu_add_help_optionu_add_version_optionu_populate_option_listu_init_parsing_stateu	set_usageuenable_interspersed_argsudisable_interspersed_argsuset_process_default_valuesuset_defaultuset_defaultsu_get_all_optionsuget_default_valuesuadd_option_groupuget_option_groupu	_get_argsu
parse_argsucheck_valuesu
_process_argsu_match_long_optu_process_long_optu_process_short_optsu
get_prog_nameuexpand_prog_nameuget_descriptionuexituerroru	get_usageuprint_usageuget_versionu
print_versionuformat_option_helpu
format_epiloguformat_helpu
print_help(u
__locals__((u-/opt/alt/python33/lib64/python3.3/optparse.pyuOptionParserQs`D
	
'
3	$)
cs{�|kr�S�fdd�|j�D�}t|�dkrI|dS|s^t���n|j�t�|��dS(u�_match_abbrev(s : string, wordmap : {string : Option}) -> string

    Return the string key in 'wordmap' for which 's' is an unambiguous
    abbreviation.  If 's' is found to be ambiguous or doesn't match any of
    'words', raise BadOptionError.
    cs%g|]}|j��r|�qS((u
startswith(u.0uword(us(u-/opt/alt/python33/lib64/python3.3/optparse.pyu
<listcomp>s	u!_match_abbrev.<locals>.<listcomp>iiN(ukeysulenuBadOptionErrorusortuAmbiguousOptionError(usuwordmapu
possibilities((usu-/opt/alt/python33/lib64/python3.3/optparse.pyu
_match_abbrevss
u
_match_abbrev('u__doc__u__version__u__all__u
__copyright__usysuosutextwrapu_reprugettextungettextuImportErroru_u	Exceptionu
OptParseErroruOptionErroruOptionConflictErroruOptionValueErroruBadOptionErroruAmbiguousOptionErroru
HelpFormatteruIndentedHelpFormatteruTitledHelpFormatteru
_parse_numu
_parse_intufloatucomplexu_builtin_cvtu
check_builtinucheck_choiceu
NO_DEFAULTuOptionu
SUPPRESS_HELPuSUPPRESS_USAGEuValuesuOptionContaineruOptionGroupuOptionParseru
_match_abbrevumake_option(((u-/opt/alt/python33/lib64/python3.3/optparse.pyu<module>sr	 



�
�t

A���$

Hacked By AnonymousFox1.0, Coded By AnonymousFox