Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
ó k]Œjc@sÀdZdZdddddddd d d d d ddddgZdZddlZddlZddlZddlZd„Zyddl m Z Wne k r±d„Z nXe Z d e fd„ƒYZ de fd„ƒYZdefd„ƒYZde fd„ƒYZde fd„ƒYZdefd„ƒYZd fd„ƒYZd efd „ƒYZd efd!„ƒYZd"„Zd#„Zd$„Ziee d%ƒfd&6ee d'ƒfd(6ee d)ƒfd*6ee d+ƒfd+6Zd,„Zd-„Zd.d/fZdfd0„ƒYZd1d2Z d1d3Z!ye"Wne#k rQd4„Z$n Xd5„Z$dfd6„ƒYZ%dfd7„ƒYZ&de&fd8„ƒYZ'd e&fd9„ƒYZ(d:„Z)eZ*dS(;s§A powerful, extensible, and easy-to-use option parser. By Greg Ward 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() s1.5.3tOptiont make_optiont SUPPRESS_HELPtSUPPRESS_USAGEtValuestOptionContainert OptionGroupt OptionParsert HelpFormattertIndentedHelpFormattertTitledHelpFormattert OptParseErrort OptionErrortOptionConflictErrortOptionValueErrortBadOptionErrors" 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. iÿÿÿÿNcCsd|jjt|ƒ|fS(Ns<%s at 0x%x: %s>(t __class__t__name__tid(tself((s /usr/lib64/python2.7/optparse.pyt_reprOs(tgettextcCs|S(N((tmessage((s /usr/lib64/python2.7/optparse.pyR\scBseZd„Zd„ZRS(cCs ||_dS(N(tmsg(RR((s /usr/lib64/python2.7/optparse.pyt__init__bscCs|jS(N(R(R((s /usr/lib64/python2.7/optparse.pyt__str__es(Rt __module__RR(((s /usr/lib64/python2.7/optparse.pyR as cBs eZdZd„Zd„ZRS(s] Raised if an Option instance is created with invalid or inconsistent arguments. cCs||_t|ƒ|_dS(N(Rtstrt option_id(RRtoption((s /usr/lib64/python2.7/optparse.pyRos cCs(|jrd|j|jfS|jSdS(Ns option %s: %s(RR(R((s /usr/lib64/python2.7/optparse.pyRss (RRt__doc__RR(((s /usr/lib64/python2.7/optparse.pyR is cBseZdZRS(sE Raised if conflicting options are added to an OptionParser. (RRR(((s /usr/lib64/python2.7/optparse.pyR yscBseZdZRS(sS Raised if an invalid option value is encountered on the command line. (RRR(((s /usr/lib64/python2.7/optparse.pyR~scBs eZdZd„Zd„ZRS(sB Raised if an invalid option is seen on the command line. cCs ||_dS(N(topt_str(RR((s /usr/lib64/python2.7/optparse.pyRˆscCstdƒ|jS(Nsno such option: %s(t_R(R((s /usr/lib64/python2.7/optparse.pyR‹s(RRRRR(((s /usr/lib64/python2.7/optparse.pyR„s tAmbiguousOptionErrorcBs eZdZd„Zd„ZRS(sD Raised if an ambiguous option is seen on the command line. cCstj||ƒ||_dS(N(RRt possibilities(RRR"((s /usr/lib64/python2.7/optparse.pyR’scCs#tdƒ|jdj|jƒfS(Nsambiguous option: %s (%s?)s, (R RtjoinR"(R((s /usr/lib64/python2.7/optparse.pyR–s (RRRRR(((s /usr/lib64/python2.7/optparse.pyR!Žs cBs›eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„ZRS(sÍ 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"). tnonecCsÇd|_||_||_|_|dkrryttjdƒ}Wntt fk rdd}nX|d8}n||_ d|_ d|_ d|_ ||_d|_i|_d|_d|_dS(NtCOLUMNSiPiis%defaults%s %ss%s=%s(tNonetparsertindent_incrementt help_positiontmax_help_positiontinttostenvirontKeyErrort ValueErrortwidthtcurrent_indenttlevelt help_widtht short_firstt default_tagtoption_stringst_short_opt_fmtt _long_opt_fmt(RR(R*R0R4((s /usr/lib64/python2.7/optparse.pyRÈs$             cCs ||_dS(N(R'(RR'((s /usr/lib64/python2.7/optparse.pyt set_parseràscCs4|dkrtd|ƒ‚nd|d|_dS(Ntt s/invalid metavar delimiter for short options: %rs%s(R:R;(R/R7(Rtdelim((s /usr/lib64/python2.7/optparse.pytset_short_opt_delimiterãs cCs4|dkrtd|ƒ‚nd|d|_dS(Nt=R;s.invalid metavar delimiter for long options: %rs%s(R>R;(R/R8(RR<((s /usr/lib64/python2.7/optparse.pytset_long_opt_delimiterés cCs%|j|j7_|jd7_dS(Ni(R1R(R2(R((s /usr/lib64/python2.7/optparse.pytindentïscCs%|j|j8_|jd8_dS(Ni(R1R(R2(R((s /usr/lib64/python2.7/optparse.pytdedentóscCs td‚dS(Nssubclasses must implement(tNotImplementedError(Rtusage((s /usr/lib64/python2.7/optparse.pyt format_usageøscCs td‚dS(Nssubclasses must implement(RB(Rtheading((s /usr/lib64/python2.7/optparse.pytformat_headingûscCs9|j|j}d|j}tj||d|d|ƒS(s� Format a paragraph of free-form text for inclusion in the help output at the current indentation level. R;tinitial_indenttsubsequent_indent(R0R1ttextwraptfill(Rttextt text_widthR@((s /usr/lib64/python2.7/optparse.pyt _format_textþs   cCs|r|j|ƒdSdSdS(Ns R:(RM(Rt description((s /usr/lib64/python2.7/optparse.pytformat_description scCs#|rd|j|ƒdSdSdS(Ns R:(RM(Rtepilog((s /usr/lib64/python2.7/optparse.pyt format_epilogscCsx|jdks|j r |jS|jjj|jƒ}|tksP|dkr\|j}n|jj |jt |ƒƒS(N( R'R&R5thelptdefaultstgettdestt NO_DEFAULTtNO_DEFAULT_VALUEtreplaceR(RRt default_value((s /usr/lib64/python2.7/optparse.pytexpand_defaults  c Cs6g}|j|}|j|jd}t|ƒ|kr[d|jd|f}|j}nd|jd||f}d}|j|ƒ|jr |j|ƒ}tj||j ƒ}|jd|d|dfƒ|j g|dD]}d|jd|f^qãƒn |ddkr)|jdƒndj |ƒS( Nis%*s%s R:s %*s%-*s iiiÿÿÿÿs ( R6R)R1tlentappendRRRZRItwrapR3textendR#( RRtresulttoptst opt_widtht indent_firstt help_textt help_linestline((s /usr/lib64/python2.7/optparse.pyt format_option!s$     .cCs |jƒd}xI|jD]>}|j|ƒ}||j|}|j|ƒ}||j|invalid option string %r: must be at least two characters longit-isMinvalid short option string %r: must be of the form -x, (x any non-dash char)s--sGinvalid long option string %r: must start with --, followed by non-dash(R[R RtR\Ru(RR`Rm((s /usr/lib64/python2.7/optparse.pyR¥Ls$   # cCs¬xj|jD]_}||kr:t||||ƒ||=q |dkrYt||tƒq t||dƒq W|r¨|jƒ}|jƒtddj|ƒ|ƒ‚ndS(NR•sinvalid keyword arguments: %ss, (tATTRStsetattrRVR&tkeystsortR R#(RR¨tattr((s /usr/lib64/python2.7/optparse.pyR¦as     cCsJ|jdkrd|_n+|j|jkrFtd|j|ƒ‚ndS(NR›sinvalid action: %r(R”R&tACTIONSR (R((s /usr/lib64/python2.7/optparse.pyt _check_actionus cCs)|jdkrK|j|jkr%|jdk r<d|_qHd|_q%nÚddl}t|jƒtjks¢t|jdƒr´t ||jj dƒ|jkr´|jj |_n|jdkrÏd|_n|j|j krút d|j|ƒ‚n|j|j kr%t d|j|ƒ‚ndS(NR£R¢iÿÿÿÿRRsinvalid option type: %rs$must not supply a type for action %r(R€R&R”tALWAYS_TYPED_ACTIONSRŽt __builtin__ttypestTypeTypethasattrtgetattrRtTYPESR t TYPED_ACTIONS(RRµ((s /usr/lib64/python2.7/optparse.pyt _check_type{s"  ! cCs²|jdkr†|jdkr0td|ƒ‚q®t|jƒtjtjfkr®tdtt|jƒƒjdƒd|ƒ‚q®n(|jdk r®td|j|ƒ‚ndS(NR£s/must supply a list of choices for type 'choice's1choices must be a list of strings ('%s' supplied)t'is#must not supply choices for type %r( R€RŽR&R R¶t TupleTypetListTypeRtsplit(R((s /usr/lib64/python2.7/optparse.pyt _check_choice™s!/cCs}|j|jkp|jdk }|jdkry|ry|jrb|jddjddƒ|_qy|jdd|_ndS(NiiR¬R i(R”t STORE_ACTIONSR€R&RURuRXRt(RRq((s /usr/lib64/python2.7/optparse.pyt _check_dest¦s  #cCs>|j|jkr:|jdk r:td|j|ƒ‚ndS(Ns*'const' must not be supplied for action %r(R”t CONST_ACTIONSR—R&R (R((s /usr/lib64/python2.7/optparse.pyt _check_constµs! cCs\|j|jkr0|jdkrXd|_qXn(|jdk rXtd|j|ƒ‚ndS(Nis*'nargs' must not be supplied for action %r(R”R»R–R&R (R((s /usr/lib64/python2.7/optparse.pyt _check_nargs»s cCs+|jdkr½t|jdƒs:td|j|ƒ‚n|jdk rzt|jƒtjk rztd|j|ƒ‚n|j dk r't|j ƒtj k r'td|j |ƒ‚q'nj|jdk råtd|j|ƒ‚n|jdk rtd|ƒ‚n|j dk r'td|ƒ‚ndS( NR˜t__call__scallback not callable: %rs3callback_args, if supplied, must be a tuple: not %rs4callback_kwargs, if supplied, must be a dict: not %rs.callback supplied (%r) for non-callback options.callback_args supplied for non-callback options0callback_kwargs supplied for non-callback option( R”R¸R˜R R™R&R€R¶R¾RštDictType(R((s /usr/lib64/python2.7/optparse.pyt_check_callbackÄs0cCsdj|j|jƒS(Nt/(R#RtRu(R((s /usr/lib64/python2.7/optparse.pyRëscCs |jdk S(N(R€R&(R((s /usr/lib64/python2.7/optparse.pyRqðscCs#|jr|jdS|jdSdS(Ni(RuRt(R((s /usr/lib64/python2.7/optparse.pytget_opt_stringós  cCs9|jj|jƒ}|dkr%|S||||ƒSdS(N(t TYPE_CHECKERRTR€R&(RRmRŠR©((s /usr/lib64/python2.7/optparse.pyt check_valueüs cCs[|dk rW|jdkr+|j||ƒStg|D]}|j||ƒ^q5ƒSndS(Ni(R&R–RÍttuple(RRmRŠtv((s /usr/lib64/python2.7/optparse.pyt convert_values cCs4|j||ƒ}|j|j|j||||ƒS(N(RÐt take_actionR”RU(RRmRŠtvaluesR'((s /usr/lib64/python2.7/optparse.pytprocess sc Cs§|dkrt|||ƒn„|dkrAt|||jƒnb|dkr`t||tƒnC|dkrt||tƒn$|dkr§|j|gƒj|ƒnü|dkrÒ|j|gƒj|jƒnÑ|dkrt|||j|dƒd ƒn¢|d krJ|jpd}|jp(i}|j||||||ŽnY|d krm|j ƒ|j ƒn6|d kr�|j ƒ|j ƒnt d |j ƒ‚d S(NR›RœR�RžR\RŸR iiR˜RRR¡sunknown action %r((R®R—tTruetFalset ensure_valueR\R™RšR˜t print_helptexitt print_versionR/R”( RR”RURmRŠRÒR'targstkwargs((s /usr/lib64/python2.7/optparse.pyRÑs4       #       ( sstores store_consts store_trues store_falsesappends append_constscountscallbackshelpsversion(sstores store_consts store_trues store_falsesappends append_constscount(sstoresappendscallback(sstoresappend(s store_consts append_const(sstringsintslongsfloatscomplexschoiceN(#RRRR­R²RÂR»R´RÄRºR�R‘RÌR&R§RR¤R¥R¦R³R¼RÁRÃRÅRÆRÉRRt__repr__RqRËRÍRÐRÓRÑ(((s /usr/lib64/python2.7/optparse.pyR½sŒ                 tSUPPRESStHELPtUSAGEcCst|tjtjfƒS(N(t isinstanceR¶t StringTypet UnicodeType(tx((s /usr/lib64/python2.7/optparse.pyt isbasestring=scCs t|tƒS(N(Ràt basestring(Rã((s /usr/lib64/python2.7/optparse.pyRä@scBsheZd d„Zd„ZeZd„Zd„Zd„Z d„Z dd„Z dd„Z d „Z RS( cCs:|r6x-|jƒD]\}}t|||ƒqWndS(N(titemsR®(RRSR±R((s /usr/lib64/python2.7/optparse.pyREscCs t|jƒS(N(Rt__dict__(R((s /usr/lib64/python2.7/optparse.pyRJscCsLt|tƒr"t|j|jƒSt|tjƒrDt|j|ƒSdSdS(Niÿÿÿÿ(RàRtcmpRçR¶RÈ(Rtother((s /usr/lib64/python2.7/optparse.pyt__cmp__Os cCsSxLt|ƒD]>}||kr ||}|dk rKt|||ƒqKq q WdS(sû 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(tdirR&R®(RtdictR±tdval((s /usr/lib64/python2.7/optparse.pyt_update_carefulWs    cCs|jj|ƒdS(sÅ 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(Rçtupdate(RRì((s /usr/lib64/python2.7/optparse.pyt _update_loosedscCsI|dkr|j|ƒn)|dkr8|j|ƒn td|‚dS(Ntcarefultloosesinvalid update mode: %r(RîRðR/(RRìtmode((s /usr/lib64/python2.7/optparse.pyt_updatels   RñcCs1t|ƒtj|}|jt|ƒ|ƒdS(N(t __import__tsystmodulesRôtvars(RtmodnameRótmod((s /usr/lib64/python2.7/optparse.pyt read_modulets  cCs'i}t||ƒ|j||ƒdS(N(texecfileRô(RtfilenameRóRø((s /usr/lib64/python2.7/optparse.pyt read_fileys cCsEt||ƒ s%t||ƒdkr8t|||ƒnt||ƒS(N(R¸R¹R&R®(RR±RŠ((s /usr/lib64/python2.7/optparse.pyRÖ~s%N(RRR&RRRRÜRêRîRðRôRûRþRÖ(((s /usr/lib64/python2.7/optparse.pyRCs       cBsžeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„ZRS(s“ 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(t_create_option_listt option_classtset_conflict_handlertset_description(RRtconflict_handlerRN((s /usr/lib64/python2.7/optparse.pyR¤s   cCsi|_i|_i|_dS(N(t _short_optt _long_optRS(R((s /usr/lib64/python2.7/optparse.pyt_create_option_mappings¯s  cCs(|j|_|j|_|j|_dS(N(RRRS(RR'((s /usr/lib64/python2.7/optparse.pyt_share_option_mappings¸s  cCs)|dkrtd|‚n||_dS(Nterrortresolves$invalid conflict_resolution value %r(serrorR (R/R(Rthandler((s /usr/lib64/python2.7/optparse.pyR¿s cCs ||_dS(N(RN(RRN((s /usr/lib64/python2.7/optparse.pyRÄscCs|jS(N(RN(R((s /usr/lib64/python2.7/optparse.pytget_descriptionÇscCs|`|`|`dS(ssee OptionParser.destroy().N(RRRS(R((s /usr/lib64/python2.7/optparse.pytdestroyËscCsrg}x=|jD]2}||jkr|j||j|fƒqqWx=|jD]2}||jkrP|j||j|fƒqPqPW|rn|j}|dkr×tddjg|D]}|d^q´ƒ|ƒ‚qn|dkrnx…|D]z\}}|jdƒr"|jj |ƒ|j|=n|jj |ƒ|j|=|jpK|jsê|j j j |ƒqêqêWqnndS(NRs conflicting option string(s): %ss, iR s--( RtRR\RuRRR R#t startswithtremovet containerRg(RRt conflict_optsRmR tcotc_option((s /usr/lib64/python2.7/optparse.pyt_check_conflictÔs.!!  $    cOsDt|dƒtjkr.|j||Ž}nNt|ƒdkrs| rs|d}t|tƒs|td|‚q|n td‚|j|ƒ|j j |ƒ||_ x|j D]}||j | (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( R8R&R4R*R+RÒt _process_argsRRRRt check_values(RRÚRÒR*R+tstopterr((s /usr/lib64/python2.7/optparse.pyt parse_argsWs     cCs ||fS(s³ 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. ((RRÒRÚ((s /usr/lib64/python2.7/optparse.pyR:~s cCs±xª|r¬|d}|dkr*|d=dS|dd!dkrP|j||ƒq|d dkr…t|ƒdkr…|j||ƒq|jr¥|j|ƒ|d=qdSqWdS(s˜_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'. is--NiiR¬(t_process_long_optR[t_process_short_optsR"R\(RR+R*RÒtarg((s /usr/lib64/python2.7/optparse.pyR9‹s   "   cCst||jƒS(s_match_long_opt(opt : string) -> string Determine which long option string 'opt' matches, ie. which one it is an unambiguous abbrevation for. Raises BadOptionError if 'opt' doesn't unambiguously match any long option string. (t _match_abbrevR(RRm((s /usr/lib64/python2.7/optparse.pyt_match_long_opt¾sc Cs_|jdƒ}d|krL|jddƒ\}}|jd|ƒt}n |}t}|j|ƒ}|j|}|jƒr|j}t |ƒ|krá|dkrÁ|j t dƒ|ƒq|j t dƒ||fƒqE|dkrÿ|jdƒ} qEt |d|!ƒ} |d|5n&|r?|j t dƒ|ƒnd} |j|| ||ƒdS(NiR>is%s option requires an arguments%s option requires %d argumentss%s option does not take a value(tpopRÀtinsertRÔRÕRBRRqR–R[RR RÎR&RÓ( RR*RÒR@Rmtnext_argthad_explicit_valueRR–RŠ((s /usr/lib64/python2.7/optparse.pyR>Çs0        c Cso|jdƒ}t}d}xM|dD]A}d|}|jj|ƒ}|d7}|sgt|ƒ‚n|jƒrA|t|ƒkr¢|jd||ƒt}n|j } t|ƒ| kr| dkrã|j t dƒ|ƒq>|j t dƒ|| fƒqG| dkr!|jdƒ} qGt |d| !ƒ} |d| 5nd} |j|| ||ƒ|r&Pq&q&WdS(NiiR¬s%s option requires an arguments%s option requires %d arguments(RCRÕRRTRRqR[RDRÔR–RR RÎR&RÓ( RR*RÒR@R;titchRmRR–RŠ((s /usr/lib64/python2.7/optparse.pyR?ìs6        cCs1|jdkr&tjjtjdƒS|jSdS(Ni(R!R&R,tpathtbasenameRöR7(R((s /usr/lib64/python2.7/optparse.pyt get_prog_namescCs|jd|jƒƒS(Ns%prog(RXRK(Rts((s /usr/lib64/python2.7/optparse.pytexpand_prog_namescCs|j|jƒS(N(RMRN(R((s /usr/lib64/python2.7/optparse.pyR sicCs*|rtjj|ƒntj|ƒdS(N(RötstderrtwriteRØ(RtstatusR((s /usr/lib64/python2.7/optparse.pyRØ"scCs4|jtjƒ|jdd|jƒ|fƒdS(sÜ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. is%s: error: %s N(t print_usageRöRNRØRK(RR((s /usr/lib64/python2.7/optparse.pyR'scCs-|jr%|jj|j|jƒƒSdSdS(NR:(RCRRDRM(R((s /usr/lib64/python2.7/optparse.pyt get_usage1s  cCs |jr||jƒIJndS(saprint_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. N(RCRR(Rtfile((s /usr/lib64/python2.7/optparse.pyRQ8s cCs!|jr|j|jƒSdSdS(NR:(R¡RM(R((s /usr/lib64/python2.7/optparse.pyt get_versionDs cCs |jr||jƒIJndS(sEprint_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. N(R¡RT(RRS((s /usr/lib64/python2.7/optparse.pyRÙJs cCsÕ|dkr|j}n|j|ƒg}|j|jtdƒƒƒ|jƒ|jrƒ|jtj ||ƒƒ|jdƒnx4|j D])}|j|j |ƒƒ|jdƒq�W|j ƒdj |d ƒS(NtOptionss R:iÿÿÿÿ(R&RRpR\RFR R@RgRRRjRRAR#(RRR_Ro((s /usr/lib64/python2.7/optparse.pyRUs      cCs|j|jƒS(N(RQRP(RR((s /usr/lib64/python2.7/optparse.pyRQfscCs |dkr|j}ng}|jrA|j|jƒdƒn|jrg|j|j|ƒdƒn|j|j|ƒƒ|j|j|ƒƒdj |ƒS(Ns R:( R&RRCR\RRRNRORRQR#(RRR_((s /usr/lib64/python2.7/optparse.pyRis    cCs+t|ddƒ}|s'tjƒ}n|S(Ntencoding(R¹R&Rötgetdefaultencoding(RRSRV((s /usr/lib64/python2.7/optparse.pyt _get_encodingvscCsJ|dkrtj}n|j|ƒ}|j|jƒj|dƒƒdS(s°print_help(file : file = stdout) Print an extended help message, listing all options and any help text provided with them, to 'file' (default stdout). RXN(R&RötstdoutRXRORtencode(RRSRV((s /usr/lib64/python2.7/optparse.pyR×|s  N(-RRRR)R&RRÔRR RÿR'R(R$R%R R,R-R.R/R0R2R4R5R6R8R=R:R9RBR>R?RKRMR RØRRRRQRTRÙRRQRRXR×(((s /usr/lib64/python2.7/optparse.pyR^sbD              ' 3 % *        cCsŠ||kr|Sg|jƒD]}|j|ƒr|^q}t|ƒdkrX|dS|smt|ƒ‚n|jƒt||ƒ‚dS(sû_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. iiN(R¯R R[RR°R!(RLtwordmaptwordR"((s /usr/lib64/python2.7/optparse.pyRAŠs  (+Rt __version__t__all__t __copyright__RöR,R¶RIRRt ImportErrorR t ExceptionR R R RRR!RR R R‚RƒR…R‡RˆR‰R�R‘RVRRRRåt NameErrorRäRRRRRAR(((s /usr/lib64/python2.7/optparse.pyts~        Î    ÿ{     A¼ÿÿ.