Ë ‚Ö¦iÑëãó—dZdZgd¢ZdZddlZddlZddlZd„Z ddlmZm Z eZ Gd „d e «Z Gd „d e «ZGd„de«ZGd„de «ZGd„de «ZGd„de«ZGd„d«ZGd„de«ZGd„de«Zd„Zd„Zee d«fee d«fee d«fee d «fd!œZd"„Zd#„Zd$ZGd%„d&«Zd'Zd(Z Gd)„d*«Z!Gd+„d,«Z"Gd-„d.e"«Z#Gd/„d0e"«Z$d1„Z%eZ&y#e $r d„Zd „Z YŒäwxYw)2a§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() z1.5.3)ÚOptionÚ make_optionÚ SUPPRESS_HELPÚSUPPRESS_USAGEÚValuesÚOptionContainerÚ OptionGroupÚ OptionParserÚ HelpFormatterÚIndentedHelpFormatterÚTitledHelpFormatterÚ OptParseErrorÚ OptionErrorÚOptionConflictErrorÚOptionValueErrorÚBadOptionErrorÚ check_choicea" 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. éNcóL—d|jjt|«|fzS)Nz<%s at 0x%x: %s>)Ú __class__Ú__name__Úid©Úselfs ú!/usr/lib64/python3.12/optparse.pyÚ_reprrOs"€Ø  §¡×!8Ñ!8¼"¸T»(ÀDÐ IÑ IÐIó)ÚgettextÚngettextcó—|S©N©)Úmessages rrr\s€Øˆrcó—|dk(r|S|S©Nér!)ÚsingularÚpluralÚns rrr_s€Ø �Š6؈O؈ rcó—eZdZd„Zd„Zy)r có—||_yr ©Úmsg©rr,s rÚ__init__zOptParseError.__init__hs €Øˆ�rcó—|jSr r+rs rÚ__str__zOptParseError.__str__ks €Ø�x‰xˆrN)rÚ __module__Ú __qualname__r.r0r!rrr r gs „òórr có—eZdZdZd„Zd„Zy)rz] Raised if an Option instance is created with invalid or inconsistent arguments. có2—||_t|«|_yr )r,ÚstrÚ option_id)rr,Úoptions rr.zOptionError.__init__us€ØˆŒÜ˜V›ˆ�rcój—|jrd|j›d|j›�S|jS)Nzoption z: )r6r,rs rr0zOptionError.__str__ys%€Ø �>‹>Ø&*§n£n°d·h²hÐ?Ð ?à—8‘8ˆOrN©rr1r2Ú__doc__r.r0r!rrrros„ñò %órrcó—eZdZdZy)rzE Raised if conflicting options are added to an OptionParser. N©rr1r2r:r!rrrrs„òrrcó—eZdZdZy)rzS Raised if an invalid option value is encountered on the command line. Nr<r!rrrr„s„òrrcó—eZdZdZd„Zd„Zy)rzB Raised if an invalid option is seen on the command line. có—||_yr )Úopt_str©rr@s rr.zBadOptionError.__init__Žs €Øˆ� rcó2—td«|jzS)Nzno such option: %s)Ú_r@rs rr0zBadOptionError.__str__‘s€ÜÐ%Ó&¨¯©Ñ5Ð5rNr9r!rrrrŠs„ñòó6rrcó—eZdZdZd„Zd„Zy)ÚAmbiguousOptionErrorzD Raised if an ambiguous option is seen on the command line. có>—tj||«||_yr )rr.Ú possibilities)rr@rGs rr.zAmbiguousOptionError.__init__˜s€Ü×Ñ  gÔ.Ø*ˆÕrcóh—td«|jdj|j«fzS)Nzambiguous option: %s (%s?)ú, )rCr@ÚjoinrGrs rr0zAmbiguousOptionError.__str__œs2€ÜÐ.Ó/Ø—<‘< §¡¨4×+=Ñ+=Ó!>Ð?ñ@ð ArNr9r!rrrErE”s„ñò+óArrEcón—eZdZdZdZd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zy)r aÍ 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"). Únonecód—d|_||_|€" ttjd«}|dz}||_t|t|dz |dz««x|_ |_ d|_ d|_ d|_||_d|_i|_d|_d|_y#t t f$rd}YŒ€wxYw) NÚCOLUMNSéPéérz%defaultz%s %sz%s=%s)ÚparserÚindent_incrementÚintÚosÚenvironÚKeyErrorÚ ValueErrorÚwidthÚminÚmaxÚ help_positionÚmax_help_positionÚcurrent_indentÚlevelÚ help_widthÚ short_firstÚ default_tagÚoption_stringsÚ_short_opt_fmtÚ _long_opt_fmt©rrSr]rYras rr.zHelpFormatter.__init__Îsǀ𠈌 Ø 0ˆÔØ ˆ=ð ÜœBŸJ™J yÑ1Ó2�ð �Q‰JˆE؈Œ äÐ%¤s¨5°2©:Ð7GÈ!Ñ7KÓ'LÓMð NˆÔ˜TÔ3àˆÔ؈Œ ؈ŒØ&ˆÔØ%ˆÔØ ˆÔØ%ˆÔØ$ˆÕøôœjÐ)ò Ø’ð ús’BÂB/Â.B/có—||_yr )rR©rrRs rÚ set_parserzHelpFormatter.set_parserçs €Øˆ� rcóB—|dvrtd|z«‚d|zdz|_y)N)ÚÚ z/invalid metavar delimiter for short options: %rú%s)rXrd©rÚdelims rÚset_short_opt_delimiterz%HelpFormatter.set_short_opt_delimiterês2€Ø ˜ Ñ !ÜØAÀEÑIóKð Kà" U™l¨TÑ1ˆÕrcóB—|dvrtd|z«‚d|zdz|_y)N)Ú=rlz.invalid metavar delimiter for long options: %rrm)rXrerns rÚset_long_opt_delimiterz$HelpFormatter.set_long_opt_delimiterðs2€Ø ˜ Ñ "ÜØ@À5ÑHóJð Jà! E™\¨DÑ0ˆÕrcól—|xj|jz c_|xjdz c_yr$©r^rSr_rs rÚindentzHelpFormatter.indentös&€Ø ×Ò˜t×4Ñ4Ñ4ÕØ � Š �a‰Ž rcól—|xj|jzc_|xjdzc_yr$rurs rÚdedentzHelpFormatter.dedentús&€Ø ×Ò˜t×4Ñ4Ñ4Õà � Š �a‰Ž rcó—td«‚©Nzsubclasses must implement©ÚNotImplementedError©rÚusages rÚ format_usagezHelpFormatter.format_usageÿó€Ü!Ð"=Ó>Ð>rcó—td«‚rzr{©rÚheadings rÚformat_headingzHelpFormatter.format_headingr€rcó˜—t|j|jz d«}d|jz}tj||||¬«S)z� Format a paragraph of free-form text for inclusion in the help output at the current indentation level. é rl)Úinitial_indentÚsubsequent_indent)r[rYr^ÚtextwrapÚfill)rÚtextÚ text_widthrvs rÚ _format_textzHelpFormatter._format_textsK€ô ˜Ÿ™ d×&9Ñ&9Ñ9¸2Ó>ˆ Ø�T×(Ñ(Ñ(ˆÜ�}‰}˜TØ'Ø,2Ø/5ô7ð 7rcó0—|r|j|«dzSy©NÚ rk©r�©rÚ descriptions rÚformat_descriptionz HelpFormatter.format_descriptions€Ù Ø×$Ñ$ [Ó1°DÑ8Ð 8àrcó6—|rd|j|«zdzSyr�r‘)rÚepilogs rÚ format_epilogzHelpFormatter.format_epilogs#€Ù ؘ$×+Ñ+¨FÓ3Ñ3°dÑ:Ð :àrcó2—|j� |js |jS|jjj |j «}|t us|€ |j}|jj|jt|««Sr ) rRrbÚhelpÚdefaultsÚgetÚdestÚ NO_DEFAULTÚNO_DEFAULT_VALUEÚreplacer5)rr7Ú default_values rÚexpand_defaultzHelpFormatter.expand_defaultsv€Ø �;‰;Ð  d×&6Ò&6Ø—;‘;Ð àŸ ™ ×,Ñ,×0Ñ0°·±Ó=ˆ Ø œJÑ &¨-Ð*?Ø ×1Ñ1ˆMà�{‰{×"Ñ" 4×#3Ñ#3´S¸Ó5GÓHÐHrc ót—g}|j|}|j|jz dz }t|«|kDrd|jd|fz}|j}nd|jd||fz}d}|j |«|j r~|j |«}tj||j«}|j d|d|dfz«|j|ddD�cgc]}d|jd|fz‘Œc}«n|ddk7r|j d«dj|«Scc}w) NrPz%*s%s rkz %*s%-*s rr%éÿÿÿÿr�) rcr\r^ÚlenÚappendr™r¡r‰Úwrapr`ÚextendrJ) rr7ÚresultÚoptsÚ opt_widthÚ indent_firstÚ help_textÚ help_linesÚlines rÚ format_optionzHelpFormatter.format_option(s=€ðˆØ×"Ñ" 6Ñ*ˆØ×&Ñ&¨×)<Ñ)<Ñ<¸qÑ@ˆ Ü ˆt‹9�yÒ Ø × 3Ñ 3°R¸Ð>Ñ>ˆDØ×-Ñ-‰Là $×"5Ñ"5°r¸9ÀdÐ!KÑKˆD؈LØ� ‰ �dÔØ �;Š;Ø×+Ñ+¨FÓ3ˆIÜ!Ÿ™ y°$·/±/ÓBˆJØ �M‰M˜) |°R¸ÀA¹Ð&GÑGÔ HØ �M‰MØ'1°!°"¡~ó7Ù'5˜tð%¨×(:Ñ(:¸BÀÐ'EÓEØ'5ñ7õ 8à �"‰X˜Ò Ø �M‰M˜$Ô Ø�w‰w�v‹Ðùò 7sÃ*D5có‚—|j«d}|jD]D}|j|«}||j|<t |t |«|j z«}ŒF|j«|jD]U}|jD]D}|j|«}||j|<t |t |«|j z«}ŒFŒW|j«|j«t|dz|j«|_ t |j|jz d«|_ y)NrrPr†)rvÚ option_listÚformat_option_stringsrcr[r¤r^Ú option_groupsrxrZr]r\rYr`)rrRÚmax_lenÚoptÚstringsÚgroups rÚstore_option_stringsz"HelpFormatter.store_option_stringsKs €Ø � ‰ Œ ؈Ø×%Ô%ˆCØ×0Ñ0°Ó5ˆGØ'.ˆD× Ñ  Ñ $ܘ'¤3 w£<°$×2EÑ2EÑ#EÓF‰Gð&ð � ‰ Œ Ø×)Ô)ˆEØ×(Ô(�Ø×4Ñ4°SÓ9�Ø+2�×#Ñ# CÑ(ܘg¤s¨7£|°d×6IÑ6IÑ'IÓJ‘ñ)ð*ð � ‰ Œ Ø � ‰ Œ Ü  ¨1¡¨d×.DÑ.DÓEˆÔܘdŸj™j¨4×+=Ñ+=Ñ=¸rÓBˆ�rcó¨—|j«ry|jxs|jj«}|jD�cgc]}|j ||fz‘Œ}}|j D�cgc]}|j||fz‘Œ}}n|j}|j }|jr||z}n||z}dj|«Scc}wcc}w)z@Return a comma-separated list of option strings & metavariables.rI) Ú takes_valueÚmetavarrœÚupperÚ _short_optsrdÚ _long_optsrerarJ)rr7r»ÚsoptÚ short_optsÚloptÚ long_optsr©s rr²z#HelpFormatter.format_option_strings]sâ€à × Ñ Ô Ø—n‘nÒ;¨¯ © ×(9Ñ(9Ó(;ˆGà&,×&8Ò&8ó:Ù&8˜dð×-Ñ-°°w°Ó?Ø&8ð ð:ð&,×%6Ò%6ó8Ù%6˜Tð×+Ñ+¨t°W¨oÓ=Ø%6ð ñ8ð ×+Ñ+ˆJØ×)Ñ)ˆIà × Ò Ø  Ñ)‰Dà˜zÑ)ˆDà�y‰y˜‹Ðùò:ùò8s ÁC Á/CN)rr1r2r:ržr.rirprsrvrxrr„r�r”r—r¡r¯r¸r²r!rrr r ¡s^„ñ'ðRÐò%ò2ò2ò 1ò òò ?ò?ò 7òò òIò!òFCó$rr có,—eZdZdZ dd„Zd„Zd„Zy)r z.Format help with indented section bodies. Ncó6—tj|||||«yr ©r r.rfs rr.zIndentedHelpFormatter.__init__tó €ô ×ÑØ Ð"Ð$5°u¸kõ Krcó—td«|zS)Nz Usage: %s )rCr}s rrz"IndentedHelpFormatter.format_usage|s€Ü�Ó %Ñ'Ð'rcó&—d|jd|fzS)Nz%*s%s: rk)r^r‚s rr„z$IndentedHelpFormatter.format_headings€Ø˜T×0Ñ0°"°gÐ>Ñ>Ð>r)rPéNr%©rr1r2r:r.rr„r!rrr r ps%„ñð#$Ø#%ØØó Kò(ó?rr có,—eZdZdZ dd„Zd„Zd„Zy)r z1Format help with underlined section headers. Ncó6—tj|||||«yr rÅrfs rr.zTitledHelpFormatter.__init__‡rÆrcóB—|jtd««›d|›d�S)NÚUsagez r�)r„rCr}s rrz TitledHelpFormatter.format_usage�s€Ø!×0Ñ0´°7³Õ<ºeÐDÐDrcóD—|›dd|jt|«z›d�S)Nr�z=-)r_r¤r‚s rr„z"TitledHelpFormatter.format_heading’s€Ú$ d¨4¯:©:Ñ&6¼¸W»Ó&EÐFÐFr)rrÉNrrÊr!rrr r ƒs'„ñð#$Ø#%ØØó KòEóGrr có¤—|ddj«dk(rd}n/|ddj«dk(r d}|ddxsd}n |dddk(rd}nd}|||«S) NrPÚ0xéÚ0bÚ0r%éé )Úlower)ÚvalÚtypeÚradixs rÚ _parse_numrÛ–sg€Ø ˆ2ˆA€w‡}�}ƒ˜$ÒØ‰Ø ˆRˆaˆ�‰‹˜DÒ ØˆØ�!�"ˆgŠn˜‰Ø ˆRˆaˆ�CŠØ‰àˆá ��UÓ Ðrcó"—t|t«Sr )rÛrT)rØs rÚ _parse_intrÝ£s€Ü �cœ3Ó ÐrÚintegerzfloating-pointÚcomplex)rTÚlongÚfloatrßcóŽ—t|j\}} ||«S#t$rtt d«|||fz«‚wxYw)Nzoption %s: invalid %s value: %r)Ú _builtin_cvtrÙrXrrC)r7rµÚvalueÚcvtÚwhats rÚ check_builtinrç«sY€Ü˜vŸ{™{Ñ+�K€Sˆ$ðGÙ�5‹zÐøÜ òGÜÜ Ð/Ó 0°C¸¸uÐ3EÑ EóGð GðGús ˜  $Acó¨—||jvr|Sdjtt|j««}t t d«|||fz«‚)NrIz.option %s: invalid choice: %r (choose from %s))ÚchoicesrJÚmapÚreprrrC)r7rµrärés rrr³sQ€Ø �—‘ÑØˆ à—)‘)œC¤ f§n¡nÓ5Ó6ˆÜÜ Ð>Ó ?Ø�E˜7Ð#ñ $ó%ð %r)ÚNOÚDEFAULTcóÆ—eZdZdZgd¢ZdZdZdZdZdZ dZ e e e e e d œZ d Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZeeeeeeegZd„ZeZd„Zd„Zd„Zd„Z d„Z!d„Z"y )rar 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 ) ÚactionrÙrœÚdefaultÚnargsÚconstréÚcallbackÚ callback_argsÚcallback_kwargsr™r») ÚstoreÚ store_constÚ store_trueÚ store_falser¥Ú append_constÚcountrór™Úversion)rör÷rørùr¥rúrû)rör¥ró)rör¥)r÷rú)ÚstringrTràrárßÚchoice)rTràrárßrþNcó¸—g|_g|_|j|«}|j|«|j |«|j D] }||«Œ yr )r½r¾Ú_check_opt_stringsÚ_set_opt_stringsÚ _set_attrsÚ CHECK_METHODS)rr©ÚattrsÚcheckers rr.zOption.__init__4sX€ðˆÔ؈ŒØ×&Ñ& tÓ,ˆØ ×јdÔ#ð �‰˜Ôð×)Ô)ˆGÙ �D�Mñ*rcóN—|D�cgc]}|sŒ|‘Œ }}|s td«‚|Scc}w)Nz+at least one option string must be supplied)Ú TypeError©rr©rµs rrzOption._check_opt_stringsGs3€ñ $Ó+™t˜¢s’˜tˆÐ+ÙÜÐIÓJÐ J؈ ùò,s…"�"cóR—|D]¢}t|«dkrtd|z|«‚t|«dk(r;|ddk(r|ddk7std|z|«‚|jj|«Œi|dddk(r|ddk7std|z|«‚|jj|«Œ¤y) NrPz>invalid option string %r: must be at least two characters longrÚ-r%zMinvalid short option string %r: must be of the form -x, (x any non-dash char)ú--zGinvalid long option string %r: must start with --, followed by non-dash)r¤rr½r¥r¾rs rrzOption._set_opt_stringsPsÙ€ÛˆCÜ�3‹x˜!Š|Ü!ð;Ø=@ñAØBFóHðHô�S“˜Q’ؘA™ #š ¨#¨a©&°Cª-Ü%ðHØJMñNàóðð× Ñ ×'Ñ'¨Õ,à˜A˜a˜ DÒ(¨S°©V°sª]Ü%ðCØEHñIàóðð—‘×&Ñ& sÕ+ñ%rcó—|jD]>}||vrt||||«||=Œ|dk(rt||t«Œ2t||d«Œ@|r7t|j ««}t ddj |«z|«‚y)Nrðzinvalid keyword arguments: %srI)ÚATTRSÚsetattrr�ÚsortedÚkeysrrJ)rrÚattrs rrzOption._set_attrses‰€Ø—J”JˆDØ�u‰}ܘ˜d E¨$¡KÔ0ؘ$‘Kà˜9Ò$ܘD $¬ Õ3ä˜D $¨Õ-ðñ ܘ5Ÿ:™:›<Ó(ˆEÜØ/°$·)±)¸EÓ2BÑBØóð ð rcóŽ—|j€d|_y|j|jvrtd|jz|«‚y)Nrözinvalid action: %r)rïÚACTIONSrrs rÚ _check_actionzOption._check_actionxs?€Ø �;‰;Ð Ø!ˆD�KØ �[‰[ § ¡ Ñ ,ÜÐ2°T·[±[Ñ@À$ÓGÐ Gð-rcóà—|j€5|j|jvr|j�d|_yd|_yyt |jt«r|jj |_|jdk(rd|_|j|j vrtd|jz|«‚|j|jvrtd|jz|«‚y)Nrþrýr5zinvalid option type: %rz$must not supply a type for action %r) rÙrïÚALWAYS_TYPED_ACTIONSréÚ isinstancerÚTYPESrÚ TYPED_ACTIONSrs rÚ _check_typezOption._check_type~sÌ€Ø �9‰9Ð Ø�{‰{˜d×7Ñ7Ñ7Ø—<‘<Ð+à (�D•Ið!)�D•Ið 8ô˜$Ÿ)™)¤TÔ*Ø ŸI™I×.Ñ.�” à�y‰y˜EÒ!Ø$�” à�y‰y § ¡ Ñ*Ü!Ð";¸d¿i¹iÑ"GÈÓNÐNØ�{‰{ $×"4Ñ"4Ñ4Ü!Ø:¸T¿[¹[ÑHÈ$óPðPð5rcóX—|jdk(rv|j€ td|«‚t|jtt f«s=tdt t|j««jd«dz|«‚y|j�td|jz|«‚y)Nrþz/must supply a list of choices for type 'choice'z1choices must be a list of strings ('%s' supplied)Ú'r%z#must not supply choices for type %r)rÙrérrÚtupleÚlistr5Úsplitrs rÚ _check_choicezOption._check_choice–s¬€Ø �9‰9˜Ò Ø�|‰|Ð#Ü!ØEÀtóMðMä § ¡ ¬u´d¨mÔ<Ü!ØGÜœ$˜tŸ|™|Ó,Ó-×3Ñ3°CÓ8¸Ñ;ñ<Ø=AóCðCð=ð�\‰\Ð %ÜØ5¸¿ ¹ ÑAÀ4óIð Ið&rcó —|j|jvxs|jdu}|j€O|rL|jr(|jdddj dd«|_y|j dd|_yyy)NrrPr rCr%)rïÚ STORE_ACTIONSrÙrœr¾rŸr½)rrºs rÚ _check_destzOption._check_dest£s„€ð—{‘{ d×&8Ñ&8Ð8ò-Ø—y‘y¨Ð,ð à �9‰9Ð ¡ð�Šà ŸO™O¨AÑ.¨q¨rÐ2×:Ñ:¸3ÀÓD�• à ×,Ñ,¨QÑ/°Ñ2�• ð"-Ð rcó€—|j|jvr&|j�td|jz|«‚yy)Nz*'const' must not be supplied for action %r)rïÚ CONST_ACTIONSròrrs rÚ _check_constzOption._check_const²sB€Ø �;‰;˜d×0Ñ0Ñ 0°T·Z±ZÐ5KÜØ<¸t¿{¹{ÑJØóð ð6LÐ 0rcó¨—|j|jvr|j€d|_yy|j�td|jz|«‚y)Nr%z*'nargs' must not be supplied for action %r)rïrrñrrs rÚ _check_nargszOption._check_nargs¸sU€Ø �;‰;˜$×,Ñ,Ñ ,Ø�z‰zÐ!Ø�• ð"à �Z‰ZÐ #ÜØ<¸t¿{¹{ÑJØóð ð$rcó(—|jdk(r®t|j«std|jz|«‚|j�3t |jt «std|jz|«‚|j�4t |jt«std|jz|«‚yy|j�td|jz|«‚|j� td|«‚|j� td|«‚y)Nrózcallback not callable: %rz3callback_args, if supplied, must be a tuple: not %rz4callback_kwargs, if supplied, must be a dict: not %rz.callback supplied (%r) for non-callback optionz.callback_args supplied for non-callback optionz0callback_kwargs supplied for non-callback option) rïÚcallablerórrôrrrõÚdictrs rÚ_check_callbackzOption._check_callbackÁs/€Ø �;‰;˜*Ò $ܘDŸM™MÔ*Ü!Ø/°$·-±-Ñ?ÀóGðGà×"Ñ"Ð.ܘt×1Ñ1´5Ô9Ü!ØIØ×(Ñ(ñ)Ø*.ó0ð0ð×$Ñ$Ð0ܘt×3Ñ3´TÔ:Ü!ØJØ×*Ñ*ñ+Ø,0ó2ð2ð;ð1ð �}‰}Ð(Ü!ØDØ—m‘mñ$Ø%)ó+ð+ð×!Ñ!Ð-Ü!ØDÀdóLðLà×#Ñ#Ð/Ü!ØFÈóNðNð0rcóR—dj|j|jz«S)NÚ/)rJr½r¾rs rr0zOption.__str__ès €Ø�x‰x˜×(Ñ(¨4¯?©?Ñ:Ó;Ð;rcó—|jduSr )rÙrs rrºzOption.takes_valueís€Ø�y‰y Ð$Ð$rcóV—|jr|jdS|jdS©Nr)r¾r½rs rÚget_opt_stringzOption.get_opt_stringðs)€Ø �?Š?Ø—?‘? 1Ñ%Ð %à×#Ñ# AÑ&Ð &rcóh—|jj|j«}|€|S||||«Sr )Ú TYPE_CHECKERr›rÙ)rrµrärs rÚ check_valuezOption.check_valueùs5€Ø×#Ñ#×'Ñ'¨¯ © Ó2ˆØ ˆ?؈Lá˜4  eÓ,Ð ,rc ó¦—|�J|jdk(r|j||«St|D�cgc]}|j||«‘Œc}«Sycc}wr$)rñr5r)rrµräÚvs rÚ convert_valuezOption.convert_valuesX€Ø Ð Ø�z‰z˜QŠØ×'Ñ'¨¨UÓ3Ð3äÁÓFÁ¸1˜d×.Ñ.¨s°AÕ6ÀÑFÓGÐGð ùòGs­Acóz—|j||«}|j|j|j||||«Sr )r8Ú take_actionrïrœ)rrµräÚvaluesrRs rÚprocesszOption.processsB€ð×"Ñ" 3¨Ó.ˆð ×ÑØ �K‰K˜Ÿ™ C¨°¸ó@ð @rcóð—|dk(rt|||«y |dk(rt|||j«y |dk(rt||d«y |dk(rt||d«y |dk(r"|j|g«j|«y |dk(r,|j|g«j|j«y |d k(r!t|||j|d «d z«y |d k(r:|jxsd }|j xsi}|j ||||g|¢­i|¤Žy |dk(r!|j«|j«y |dk(r!|j«|j«y td|jz«‚)Nrör÷røTrùFr¥rúrûrr%rór!r™rüzunknown action %r) rròÚ ensure_valuer¥rôrõróÚ print_helpÚexitÚ print_versionrXrï) rrïrœrµrär;rRÚargsÚkwargss rr:zOption.take_actions¡€Ø �WÒ Ü �F˜D %Ô (ð4ð3�}Ò $Ü �F˜D $§*¡*Ô -ð0ð/�|Ò #Ü �F˜D $Ô 'ð,ð+�}Ò $Ü �F˜D %Ô (ð(ð'�xÒ Ø × Ñ   bÓ )× 0Ñ 0°Ô 7ð$ð#�~Ò %Ø × Ñ   bÓ )× 0Ñ 0°·±Ô <ð ð�wÒ Ü �F˜D &×"5Ñ"5°d¸AÓ">ÀÑ"BÔ Cðð�zÒ !Ø×%Ñ%Ò+¨ˆDØ×)Ñ)Ò/¨RˆFØ ˆD�M‰M˜$  U¨FÐ D°TÒ D¸VÒ Dðð�vÒ Ø × Ñ Ô Ø �K‰KŒMðð �yÒ Ø × Ñ Ô "Ø �K‰KŒMðôÐ0°4·;±;Ñ>Ó?Ð ?r)#rr1r2r:r rr"rrr%rrçrr4rr.rrrrrr r#r&r(r,r0rÚ__repr__rºr2r5r8r<r:r!rrrrÁsÞ„ñò* €Eð €Gð€Mð!€Mð &Ðð%€Mð D€Eð$!.Ø -Ø -Ø -Ø ,ñ €Lð €Mò ò&ò,ò*ò&Hò Pò0 Iò 3òò òNð8#Ø Ø"Ø Ø!Ø!Ø$ð &€Mò<ð€Hò%ò'ò-òHò @órrÚ SUPPRESSHELPÚ SUPPRESSUSAGEcóL—eZdZd d„Zd„ZeZd„Zd„Zd„Z d„Z d d„Z d d „Z d „Z y) rNcóT—|r&|j«D]\}}t|||«Œyyr )Úitemsr)rršrrØs rr.zValues.__init__9s+€Ù Ø'Ÿ~™~Ö/‘ ��sܘ˜d CÕ(ñ 0ð rcó,—t|j«Sr )r5Ú__dict__rs rr0zValues.__str__>s€Ü�4—=‘=Ó!Ð!rcóž—t|t«r|j|jk(St|t«r|j|k(StSr )rrrKr+ÚNotImplemented)rÚothers rÚ__eq__z Values.__eq__Cs>€Ü �eœVÔ $Ø—=‘= E§N¡NÑ2Ð 2Ü ˜œtÔ $Ø—=‘= EÑ)Ð )ä!Ð !rcóX—t|«D]}||vsŒ||}|€Œt|||«Œy)zû 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)Údirr)rr+rÚdvals rÚ_update_carefulzValues._update_carefulKs4€ô˜–IˆDØ�tŠ|ؘD‘z�ØÑ#ܘD $¨Õ-ñ rcó:—|jj|«y)zÅ 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)rKÚupdate)rr+s rÚ _update_loosezValues._update_looseXs€ð � ‰ ×јTÕ"rcóz—|dk(r|j|«y|dk(r|j|«ytd|z«‚)NÚcarefulÚloosezinvalid update mode: %r)rSrVrX)rr+Úmodes rÚ_updatezValues._update`s>€Ø �9Ò Ø × Ñ  Õ &Ø �WŠ_Ø × Ñ ˜tÕ $äÐ6¸Ñ=Ó>Ð >rcóv—t|«tj|}|jt |«|«yr )Ú __import__ÚsysÚmodulesr[Úvars)rÚmodnamerZÚmods rÚ read_modulezValues.read_modulehs*€Ü�7ÔÜ�k‰k˜'Ñ"ˆØ � ‰ ”T˜#“Y Õ%rcór—i}tt|«j«|«|j||«yr )ÚexecÚopenÚreadr[)rÚfilenamerZr`s rÚ read_filezValues.read_filems,€ØˆÜ ŒT�(‹^× Ñ Ó " DÔ)Ø � ‰ �T˜4Õ rcód—t||«r t||«€ t|||«t||«Sr )ÚhasattrÚgetattrr)rrräs rr>zValues.ensure_valuers1€Ü�t˜TÔ"¤g¨d°DÓ&9Ð&AÜ �D˜$ Ô &Ü�t˜TÓ"Ð"rr )rX)rr1r2r.r0rrDrOrSrVr[rcrir>r!rrrr7s6„ó)ò "ð€Hò"ò .ò#ò?ó&ó !ó #rrcóp—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zy)ra’ 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 appear 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. cóv—|j«||_|j|«|j|«yr )Ú_create_option_listÚ option_classÚset_conflict_handlerÚset_description)rrpÚconflict_handlerr“s rr.zOptionContainer.__init__˜s5€ð × Ñ Ô"à(ˆÔØ ×!Ñ!Ð"2Ô3Ø ×ј[Õ)rcó.—i|_i|_i|_yr ©Ú _short_optÚ _long_optršrs rÚ_create_option_mappingsz'OptionContainer._create_option_mappings£s€ðˆŒØˆŒØˆ� rcój—|j|_|j|_|j|_yr rurhs rÚ_share_option_mappingsz&OptionContainer._share_option_mappings¬s)€ð!×+Ñ+ˆŒØ×)Ñ)ˆŒØŸ™ˆ� rcó6—|dvrtd|z«‚||_y)N)ÚerrorÚresolvez$invalid conflict_resolution value %r)rXrs)rÚhandlers rrqz$OptionContainer.set_conflict_handler³s$€Ø Ð.Ñ .ÜÐCÀgÑMÓNÐ NØ 'ˆÕrcó—||_yr ©r“r’s rrrzOptionContainer.set_description¸s €Ø&ˆÕrcó—|jSr r€rs rÚget_descriptionzOptionContainer.get_description»s€Ø×ÑÐrcó—|`|`|`y©zsee OptionParser.destroy().Nrurs rÚdestroyzOptionContainer.destroy¿s€à ˆOØ ˆNØ ‰Mrc óú—g}|jD]1}||jvsŒ|j||j|f«Œ3|jD]1}||jvsŒ|j||j|f«Œ3|rò|j }|dk(r/t ddj|D�cgc]}|d‘Œ c}«z|«‚|dk(r¬|D]¦\}}|jd«r)|jj|«|j|=n(|jj|«|j|=|jrŒu|jrŒ‚|jjj|«Œ¨yyycc}w)Nr|z conflicting option string(s): %srIrr}r ) r½rvr¥r¾rwrsrrJÚ startswithÚremoveÚ containerr±)rr7Ú conflict_optsrµr~ÚcoÚc_options rÚ_check_conflictzOptionContainer._check_conflictÈsh€Øˆ Ø×%Ô%ˆCØ�d—o‘oÒ%Ø×$Ñ$ c¨4¯?©?¸3Ñ+?Ð%@ÕAð&ð×$Ô$ˆCØ�d—n‘nÒ$Ø×$Ñ$ c¨4¯>©>¸#Ñ+>Ð%?Õ@ð%ñ Ø×+Ñ+ˆGؘ'Ò!Ü)Ø6Ø—i‘i±Ó ?±¨2  A£°Ñ ?Ó@ñAàóðð˜IÒ%Û'4‘O�S˜(Ø—~‘~ dÔ+Ø ×+Ñ+×2Ñ2°3Ô7Ø ŸN™N¨3Ñ/à ×,Ñ,×3Ñ3°CÔ8Ø ŸO™O¨CÐ0Ø$×0Ó0°H×4GÓ4GØ ×*Ñ*×6Ñ6×=Ñ=¸hÕGñ(5ð&ð ùò !@sÂ+ E8cóœ—t|dt«r|j|i|¤Ž}n>t|«dk(r%|s#|d}t|t«st d|z«‚t d«‚|j |«|jj|«||_ |jD]}||j|<Œ|jD]}||j|<Œ|j�h|jt ur%|j|j"|j<|S|j|j"vrd|j"|j<|S)zOadd_option(Option) add_option(opt_str, ..., kwarg=val, ...) rr%znot an Option instance: %rúinvalid argumentsN)rr5rpr¤rrr�r±r¥r‰r½rvr¾rwrœrðr�rš)rrBrCr7rµs rÚ add_optionzOptionContainer.add_optionãs*€ô �d˜1‘gœsÔ #Ø&�T×&Ñ&¨Ð7°Ñ7‰FÜ �‹Y˜!Š^¡Fؘ!‘WˆFܘf¤fÔ-ÜÐ <¸vÑ EÓFÐFäÐ/Ó0Ð 0à ×јVÔ$à ×Ñ×Ñ Ô'ØˆÔØ×%Ô%ˆCØ#)ˆD�O‰O˜CÒ ð&à×$Ô$ˆCØ"(ˆD�N‰N˜3Ò ð%ð �;‰;Ð "Ø�~‰~¤ZÑ/Ø-3¯^©^�— ‘ ˜fŸk™kÑ*ðˆ ð—‘ D§M¡MÑ1Ø-1�— ‘ ˜fŸk™kÑ*àˆ rcó4—|D]}|j|«Œyr )r�)rr±r7s rÚ add_optionszOptionContainer.add_optionss€Û!ˆFØ �O‰O˜FÕ #ñ"rcór—|jj|«xs|jj|«Sr )rvr›rwrAs rÚ get_optionzOptionContainer.get_options0€Ø—‘×#Ñ# GÓ,ò,Ø—‘×"Ñ" 7Ó+ð -rcó>—||jvxs||jvSr )rvrwrAs rÚ has_optionzOptionContainer.has_option s$€Ø˜4Ÿ?™?Ð*ò*ؘ4Ÿ>™>Ð)ð +rcóV—|jj|«}|€|jj|«}|€td|z«‚|jD]}|j|=Œ|j D]}|j|=Œ|j jj|«y)Nzno such option %r) rvr›rwrXr½r¾r‰r±rˆ)rr@r7rµs rÚ remove_optionzOptionContainer.remove_options—€Ø—‘×$Ñ$ WÓ-ˆØ ˆ>Ø—^‘^×'Ñ'¨Ó0ˆFØ ˆ>ÜÐ0°7Ñ:Ó;Ð ;à×%Ô%ˆCØ—‘ Ñ$ð&à×$Ô$ˆCØ—‘˜sÑ#ð%à×Ñ×$Ñ$×+Ñ+¨FÕ3rcóÊ—|jsyg}|jD]5}|jtusŒ|j|j |««Œ7dj |«S©Nrk)r±r™rr¥r¯rJ)rÚ formatterr¨r7s rÚformat_option_helpz"OptionContainer.format_option_helpsV€Ø×ÒØØˆØ×&Ô&ˆFØ—;‘;¤-Ò/Ø— ‘ ˜i×5Ñ5°fÓ=Õ>ð'ð�w‰w�v‹Ðrcó@—|j|j««Sr )r”r‚©rr›s rr”z"OptionContainer.format_description(s€Ø×+Ñ+¨D×,@Ñ,@Ó,BÓCÐCrcóØ—g}|jr |j|j|««|jr |j|j |««dj |«S)Nr�)r“r¥r”r±rœrJ©rr›r¨s rÚ format_helpzOptionContainer.format_help+sV€ØˆØ × Ò Ø �M‰M˜$×1Ñ1°)Ó<Ô =Ø × Ò Ø �M‰M˜$×1Ñ1°)Ó<Ô =Ø�y‰y˜Ó Ð rN)rr1r2r:r.rxrzrqrrr‚r…r�r�r’r”r–r˜rœr”r¡r!rrrrxsY„ñò< *òò(ò(ò 'ò òòHò6ò<$ò -ò+ò 4ò òDó!rrcó,—eZdZdd„Zd„Zd„Zd„Zd„Zy)rNcóx—||_tj||j|j|«||_yr )rRrr.rprsÚtitle)rrRr¤r“s rr.zOptionGroup.__init__6s4€ØˆŒ Ü× Ñ Ø �&×%Ñ% v×'>Ñ'>À ô Màˆ� rcóH—g|_|j|j«yr )r±rzrRrs rrozOptionGroup._create_option_list<s€ØˆÔØ ×#Ñ# D§K¡KÕ0rcó—||_yr )r¤)rr¤s rÚ set_titlezOptionGroup.set_title@s €Øˆ� rcó2—tj|«|`yr„)rr…r±rs rr…zOptionGroup.destroyCs€ä×Ñ Ô%Ø Ñ rcó®—|j|j«}|j«|tj ||«z }|j «|Sr )r„r¤rvrr¡rxr s rr¡zOptionGroup.format_helpJsJ€Ø×)Ñ)¨$¯*©*Ó5ˆØ×ÑÔØ”/×-Ñ-¨d°IÓ>Ñ>ˆØ×ÑÔØˆ rr )rr1r2r.ror§r…r¡r!rrrr4s„óò 1òòórrc ó—eZdZdZgZddedddddddf d„Zd„Zd„Zd„Z d „Z d*d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd+d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d,d „Z!d!„Z"d"„Z#d-d#„Z$d$„Z%d-d%„Z&d-d&„Z'd'„Z(d-d(„Z)d-d)„Z*y).r a$ 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. Nr|Tc ó>—tj||||«|j|«| |_||_d|_d|_|€ t«}||_|jj|«| |_ |j||¬«|j«y)NT)Úadd_help) rr.Ú set_usageÚprogrüÚallow_interspersed_argsÚprocess_default_valuesr r›rir–Ú_populate_option_listÚ_init_parsing_state) rr~r±rprürsr“r›Úadd_help_optionr®r–s rr.zOptionParser.__init__šsœ€ô × Ñ Ø �,Ð 0°+ô ?à �‰�uÔØˆŒ ؈Œ Ø'+ˆÔ$Ø&*ˆÔ#Ø Ð Ü-Ó/ˆIØ"ˆŒØ �‰×!Ñ! $Ô'؈Œ ð ×"Ñ" ;Ø,;ð #ô =ð × Ñ Õ"rcó|—tj|«|jD]}|j«Œ|`|`|`y)a 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)rr…r³r±r›)rr·s rr…zOptionParser.destroy¼s<€ô ×Ñ Ô%Ø×'Ô'ˆEØ �M‰M�Oð(à Ð Ø Ð Ø ‰Nrcó@—g|_g|_|j«yr )r±r³rxrs rroz OptionParser._create_option_listÎs€ØˆÔØˆÔØ ×$Ñ$Õ&rcó@—|jdddtd«¬«y)Nz-hz--helpr™zshow this help message and exit©rïr™©r�rCrs rÚ_add_help_optionzOptionParser._add_help_optionÓs$€Ø �‰˜˜hØ%ÜÐ@ÓAð õ Crcó>—|jddtd«¬«y)Nz --versionrüz&show program's version number and exitr·r¸rs rÚ_add_version_optionz OptionParser._add_version_optionØs"€Ø �‰˜ Ø(ÜÐGÓHð õ JrcóÖ—|jr|j|j«|r|j|«|jr|j«|r|j «yyr )Ústandard_option_listr’rür»r¹)rr±r¬s rr±z"OptionParser._populate_option_listÝsW€Ø × $Ò $Ø × Ñ ˜T×6Ñ6Ô 7Ù Ø × Ñ ˜[Ô )Ø �<Š<Ø × $Ñ $Ô &Ù Ø × !Ñ !Õ #ð rcó.—d|_d|_d|_yr )ÚrargsÚlargsr;rs rr²z OptionParser._init_parsing_stateçs€àˆŒ ؈Œ ؈� rcó¬—|€td«|_y|turd|_y|j«j d«r |dd|_y||_y)Nz%prog [options]zusage: é)rCr~rr×r‡r}s rr­zOptionParser.set_usageðsK€Ø ˆ=ÜÐ,Ó-ˆD�JØ ”nÑ $؈D�Jà �[‰[‹]× %Ñ % iÔ 0ؘq˜r˜ˆD�JàˆD�Jrcó—d|_y)aSet 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.TN©r¯rs rÚenable_interspersed_argsz%OptionParser.enable_interspersed_argsûs €ð (,ˆÕ$rcó—d|_y)zé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. FNrÄrs rÚdisable_interspersed_argsz&OptionParser.disable_interspersed_argss €ð (-ˆÕ$rcó—||_yr )r°)rr<s rÚset_process_default_valuesz'OptionParser.set_process_default_values s €Ø&-ˆÕ#rcó"—||j|<yr )rš)rrœräs rÚ set_defaultzOptionParser.set_defaults€Ø#ˆ� ‰ �dÒrc ó:—|jj|«yr )ršrU)rrCs rÚ set_defaultszOptionParser.set_defaultss€Ø � ‰ ×јVÕ$rcó|—|jdd}|jD]}|j|j«Œ|Sr )r±r³r§)rÚoptionsr·s rÚ_get_all_optionszOptionParser._get_all_optionss9€Ø×"Ñ"¡1Ð%ˆØ×'Ô'ˆEØ �N‰N˜5×,Ñ,Õ -ð(àˆrcón—|jst|j«S|jj«}|j «D]]}|j |j «}t|t«sŒ/|j«}|j||«||j <Œ_t|«Sr ) r°rršÚcopyrÐr›rœrr5r2r5)rršr7rðr@s rÚget_default_valueszOptionParser.get_default_valuess‘€Ø×*Ò*ä˜$Ÿ-™-Ó(Ð (à—=‘=×%Ñ%Ó'ˆØ×+Ñ+Ö-ˆFØ—l‘l 6§;¡;Ó/ˆGܘ'¤3Õ'Ø ×/Ñ/Ó1�Ø(.×(:Ñ(:¸7ÀGÓ(L�˜Ÿ™Ò%ð .ô �hÓÐrcó0—t|dt«rt|g|¢­i|¤Ž}nWt|«dk(r>|s<|d}t|t«st d|z«‚|j |urt d«‚t d«‚|jj|«|S)Nrr%znot an OptionGroup instance: %rz"invalid OptionGroup (wrong parser)r�) rr5rr¤rrRrXr³r¥)rrBrCr·s rÚadd_option_groupzOptionParser.add_option_group+s’€ä �d˜1‘gœsÔ #Ü Ð6 tÒ6¨vÑ6‰EÜ �‹Y˜!Š^¡Fؘ‘GˆEܘe¤[Ô1ÜÐ AÀEÑ IÓJÐJØ�|‰| 4Ñ'Ü Ð!EÓFÐFäÐ/Ó0Ð 0à ×Ñ×!Ñ! %Ô(؈ rcó¬—|jj|«xs|jj|«}|r|j|ur |jSyr )rvr›rwr‰)rr@r7s rÚget_option_groupzOptionParser.get_option_group;sO€Ø—/‘/×%Ñ% gÓ.ò.Ø—.‘.×$Ñ$ WÓ-ð á �f×&Ñ&¨dÑ2Ø×#Ñ#Ð #Ørcó6—|€tjddS|ddSr$)r^Úargv)rrBs rÚ _get_argszOptionParser._get_argsEs €Ø ˆ<Ü—8‘8˜A˜B�<Ð à™�7ˆNrcó8—|j|«}|€|j«}||_gx|_}||_ |j |||«}||z}|j||«S#t tf$r$}|jt|««Yd}~ŒEd}~wwxYw)aR 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 a Values instance (with all your option values) and 'args' is the list of arguments left over after parsing options. N) rÚrÓr¿rÀr;Ú _process_argsrrr|r5Ú check_values)rrBr;r¿rÀÚstopÚerrs rÚ parse_argszOptionParser.parse_argsKs£€ð—‘˜tÓ$ˆØ ˆ>Ø×,Ñ,Ó.ˆFðˆŒ ØÐˆŒ �U؈Œ ð !Ø×%Ñ% e¨U°FÓ;ˆDð�u‰}ˆØ× Ñ  ¨Ó.Ð.øô Ô 0Ð1ò !Ø �J‰J”s˜3“x× Ñ ûð !ús¼A&Á&BÁ5BÂBcó —||fS)a³ 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. r!)rr;rBs rrÝzOptionParser.check_valuesrs€ð˜ˆ~Ðrcóø—|rx|d}|dk(r|d=y|dddk(r|j||«nK|dddk(r!t|«dkDr|j||«n"|jr|j |«|d=ny|rŒwyy)a˜_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'. rr NrPr%r )Ú_process_long_optr¤Ú_process_short_optsr¯r¥)rrÀr¿r;Úargs rrÜzOptionParser._process_argssŽ€ñؘ‘(ˆCð�dŠ{ؘ!�HØØ�Q�q�˜TÒ!à×&Ñ& u¨fÕ5Ø�R�a�˜C’¤C¨£H¨q¢Lð×(Ñ(¨°Õ7Ø×-Ò-Ø— ‘ ˜SÔ!ؘ!‘Hàô'rcó.—t||j«S)a_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. )Ú _match_abbrevrw)rrµs rÚ_match_long_optzOptionParser._match_long_opt²s€ô˜S $§.¡.Ó1Ð1rcó&—|jd«}d|vr*|jdd«\}}|jd|«d}n|}d}|j|«}|j|}|j «rh|j }t|«|kr#|jtdd|«||dœz«nM|dk(r|jd«} n6t|d|«} |d|…=n"|r|jtd «|z«nd} |j| ||«y) Nrrrr%TFú.%(option)s option requires %(number)d argumentú/%(option)s option requires %(number)d arguments©r7Únumberz%s option does not take a value) ÚpoprÚinsertrèrwrºrñr¤r|rrrCr<) rr¿r;rårµÚnext_argÚhad_explicit_valuer7rñräs rrãzOptionParser._process_long_opt»s€Ø�i‰i˜‹lˆð �#‰:Ø!Ÿi™i¨¨QÓ/‰OˆS�(Ø �L‰L˜˜HÔ %Ø!%Ñ àˆCØ!&Ð à×"Ñ" 3Ó'ˆØ—‘ Ñ$ˆØ × Ñ Ô Ø—L‘LˆEÜ�5‹z˜EÒ!Ø— ‘ œ8ØDØEØóð),°uÑ=ñ>õ?ð˜!’ØŸ ™  !› ‘ä˜e A e˜nÓ-�ؘ!˜E˜'‘Ná Ø �J‰J”qÐ:Ó;¸cÑAÕ BðˆEà�‰�s˜E 6¨4Õ0rcó—|jd«}d}d}|ddD]ë}d|z}|jj|«}|dz }|s t|«‚|j «r�|t |«kr|j d||d«d}|j} t |«| kr#|jtdd| «|| dœz«n-| dk(r|jd«} nt|d| «} |d| …=nd} |j| ||«|sŒëyy) NrFr%r Trêrërì) rîrvr›rrºr¤rïrñr|rrr<) rr¿r;rårÞÚiÚchrµr7rñräs rräz OptionParser._process_short_optsßs"€Ø�i‰i˜‹lˆØˆØ ˆØ�a�b“'ˆBؘ‘(ˆCØ—_‘_×(Ñ(¨Ó-ˆFØ �‰FˆAáÜ$ SÓ)Ð)Ø×!Ñ!Ô#ð”s˜3“x’<Ø—L‘L  C¨¨ GÔ,Ø�DàŸ ™ �Ü�u“: Ò%Ø—J‘JœxØHØIØó ð-0¸5Ñ!Añ BõCð˜a’ZØ!ŸI™I a›L‘Eä! %¨¨% .Ó1�Eؘa ˜g™ð�à �N‰N˜3  v¨tÔ 4âÙñArcó’—|j€0tjjtj d«S|jSr1)r®rUÚpathÚbasenamer^rÙrs rÚ get_prog_namezOptionParser.get_prog_names3€Ø �9‰9Ð Ü—7‘7×#Ñ#¤C§H¡H¨Q¡KÓ0Ð 0à—9‘9Ð rcóB—|jd|j««S)Nz%prog)rŸrø)rÚss rÚexpand_prog_namezOptionParser.expand_prog_names€Ø�y‰y˜ $×"4Ñ"4Ó"6Ó7Ð7rcó8—|j|j«Sr )rûr“rs rr‚zOptionParser.get_descriptions€Ø×$Ñ$ T×%5Ñ%5Ó6Ð6rcóp—|rtjj|«tj|«yr )r^ÚstderrÚwriter@)rÚstatusr,s rr@zOptionParser.exits#€Ù Ü �J‰J× Ñ ˜SÔ !Ü �‰�ÕrcóŽ—|jtj«|jd|j «›d|›d�«y)zÜ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. rPz : error: r�N)Ú print_usager^rþr@rør-s rr|zOptionParser.errors2€ð ×ÑœŸ™Ô$Ø � ‰ �!¨$×*<Ñ*<Õ*>ÂÐDÕErcó„—|jr4|jj|j|j««Syrš)r~r›rrûrs rÚ get_usagezOptionParser.get_usage#s7€Ø �:Š:Ø—>‘>×.Ñ.Ø×%Ñ% d§j¡jÓ1ó3ð 3ðrcóT—|jrt|j«|¬«yy)aaprint_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. ©ÚfileN)r~Úprintr©rrs rrzOptionParser.print_usage*s!€ð �:Š:Ü �$—.‘.Ó"¨Ö .ð rcóR—|jr|j|j«Syrš)rürûrs rÚ get_versionzOptionParser.get_version6s!€Ø �<Š<Ø×(Ñ(¨¯©Ó6Ð 6àrcóT—|jrt|j«|¬«yy)aEprint_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. rN)rürr r s rrAzOptionParser.print_version<s#€ð �<Š<Ü �$×"Ñ"Ó$¨4Ö 0ð rcó—|€ |j}|j|«g}|j|jt d«««|j «|j r6|jtj||««|jd«|jD]3}|j|j|««|jd«Œ5|j«dj|dd«S)NÚOptionsr�rkr£) r›r¸r¥r„rCrvr±rrœr³r¡rxrJ)rr›r¨r·s rrœzOptionParser.format_option_helpGsÏ€Ø Ð ØŸ™ˆIØ×&Ñ& tÔ,؈Ø� ‰ �i×.Ñ.¬q°«|Ó<Ô=Ø×ÑÔØ × Ò Ø �M‰Mœ/×<Ñ<¸TÀ9ÓMÔ NØ �M‰M˜$Ô Ø×'Ô'ˆEØ �M‰M˜%×+Ñ+¨IÓ6Ô 7Ø �M‰M˜$Õ ð(ð ×ÑÔà�w‰w�v˜c˜r�{Ó#Ð#rcó8—|j|j«Sr )r—r–ržs rr—zOptionParser.format_epilogXs€Ø×&Ñ& t§{¡{Ó3Ð3rcó~—|€ |j}g}|jr"|j|j«dz«|jr#|j|j |«dz«|j|j |««|j|j|««dj|«Sr�) r›r~r¥rr“r”rœr—rJr s rr¡zOptionParser.format_help[s–€Ø Ð ØŸ™ˆIØˆØ �:Š:Ø �M‰M˜$Ÿ.™.Ó*¨TÑ1Ô 2Ø × Ò Ø �M‰M˜$×1Ñ1°)Ó<¸tÑCÔ DØ� ‰ �d×-Ñ-¨iÓ8Ô9Ø� ‰ �d×(Ñ(¨Ó3Ô4Ø�w‰w�v‹Ðrcóf—|€tj}|j|j««y)z°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)r^Ústdoutrÿr¡r s rr?zOptionParser.print_helpgs'€ð ˆ<Ü—:‘:ˆDØ � ‰ �4×#Ñ#Ó%Õ&r)T)NN)rNr )+rr1r2r:r½rr.r…ror¹r»r±r²r­rÅrÇrÉrËrÍrÐrÓrÕr×rÚràrÝrÜrèrãrärørûr‚r@r|rrr rArœr—r¡r?r!rrr r Rsò„ñBðHÐðØ!Ø$ØØ")Ø!ØØ!%ØØó#òD ò$'ò Cò Jó $òò ò,ò-ò.ò$ò%òò  ò"ò òó %/òN òòf2ò"1òH$òRò 8ò7óò Fòó /òó 1ó$ò"4ó ô'rr cóì—||vr|S|j«D�cgc]}|j|«r|‘Œ}}t|«dk(r|dS|s t|«‚|j «t ||«‚cc}w)zû_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. r%r)rr‡r¤rÚsortrE)rúÚwordmapÚwordrGs rrçrçts‡€ð ˆG�|؈ð+2¯,©,¬.ó0©. $Ø ŸO™O¨AÔ.ò¨.ˆ ð0ô ˆ}Ó  Ò "Ø  Ñ#Ð #ÙÜ  Ó#Ð #ð × Ñ Ô Ü& q¨-Ó8Ð 8ùò0s™A1)'r:Ú __version__Ú__all__Ú __copyright__r^rUr‰rrrÚ ImportErrorrCÚ Exceptionr rrrrrEr r r rÛrÝrárßrãrçrr�rrrrrrr rçrr!rrÚrsyðñð.€ ò €ð$€ ÷@ÛòJð ß)ð €ô�Yôô�=ôô ˜;ôô ˜ ôô 6�mô6ô A˜Nô A÷MñMô^?˜]ô?ô&G˜=ôGò& ò ð%¡a¨ £lÐ3Ø%¡q¨£|Ð4Ø!¡1Ð%5Ó#6Ð7Ø%¡q¨£|Ð4ñ7€ ò Gò%ð€ ÷nñnðf "€ Ø#€÷>#ñ>#÷By!ñy!ôx�?ôô<]'�Oô]'òD9ð:� øðm1òòôð ús›C:Ã: DÄD