/opt/imh/python3.13/lib/python3.13/__pycache__
NameSizeModeActions
abc.cpython-313.pyc79280644editdlrm
antigravity.cpython-313.pyc10000644editdlrm
argparse.cpython-313.pyc1040800644editdlrm
ast.cpython-313.pyc1030860644editdlrm
base64.cpython-313.pyc258320644editdlrm
bdb.cpython-313.pyc405800644editdlrm
bisect.cpython-313.pyc35120644editdlrm
bz2.cpython-313.pyc151800644editdlrm
calendar.cpython-313.pyc397080644editdlrm
cmd.cpython-313.pyc189770644editdlrm
code.cpython-313.pyc157990644editdlrm
codecs.cpython-313.pyc405720644editdlrm
codeop.cpython-313.pyc66550644editdlrm
colorsys.cpython-313.pyc45190644editdlrm
compileall.cpython-313.pyc206150644editdlrm
configparser.cpython-313.pyc689660644editdlrm
contextlib.cpython-313.pyc305090644editdlrm
contextvars.cpython-313.pyc2760644editdlrm
copy.cpython-313.pyc106450644editdlrm
copyreg.cpython-313.pyc75510644editdlrm
cProfile.cpython-313.pyc86790644editdlrm
csv.cpython-313.pyc207150644editdlrm
dataclasses.cpython-313.pyc478390644editdlrm
datetime.cpython-313.pyc4260644editdlrm
decimal.cpython-313.pyc30170644editdlrm
difflib.cpython-313.pyc720550644editdlrm
dis.cpython-313.pyc475320644editdlrm
doctest.cpython-313.pyc1076920644editdlrm
enum.cpython-313.pyc858660644editdlrm
filecmp.cpython-313.pyc150420644editdlrm
fileinput.cpython-313.pyc206480644editdlrm
fnmatch.cpython-313.pyc68190644editdlrm
fractions.cpython-313.pyc383840644editdlrm
ftplib.cpython-313.pyc423460644editdlrm
functools.cpython-313.pyc422860644editdlrm
genericpath.cpython-313.pyc78260644editdlrm
getopt.cpython-313.pyc84790644editdlrm
getpass.cpython-313.pyc73260644editdlrm
gettext.cpython-313.pyc225760644editdlrm
glob.cpython-313.pyc236810644editdlrm
graphlib.cpython-313.pyc102120644editdlrm
gzip.cpython-313.pyc319930644editdlrm
hashlib.cpython-313.pyc82910644editdlrm
heapq.cpython-313.pyc177850644editdlrm
hmac.cpython-313.pyc106750644editdlrm
imaplib.cpython-313.pyc626620644editdlrm
inspect.cpython-313.pyc1365370644editdlrm
io.cpython-313.pyc42900644editdlrm
ipaddress.cpython-313.pyc919790644editdlrm
keyword.cpython-313.pyc10560644editdlrm
linecache.cpython-313.pyc85670644editdlrm
locale.cpython-313.pyc590140644editdlrm
lzma.cpython-313.pyc157330644editdlrm
mailbox.cpython-313.pyc1187480644editdlrm
mimetypes.cpython-313.pyc249130644editdlrm
modulefinder.cpython-313.pyc284070644editdlrm
netrc.cpython-313.pyc93410644editdlrm
ntpath.cpython-313.pyc284840644editdlrm
nturl2path.cpython-313.pyc27520644editdlrm
numbers.cpython-313.pyc140470644editdlrm
opcode.cpython-313.pyc40770644editdlrm
operator.cpython-313.pyc173800644editdlrm
optparse.cpython-313.pyc675940644editdlrm
os.cpython-313.pyc458640644editdlrm
pdb.cpython-313.pyc1061180644editdlrm
pickle.cpython-313.pyc784190644editdlrm
pickletools.cpython-313.pyc804420644editdlrm
pkgutil.cpython-313.pyc199740644editdlrm
platform.cpython-313.pyc446900644editdlrm
plistlib.cpython-313.pyc431130644editdlrm
poplib.cpython-313.pyc184400644editdlrm
posixpath.cpython-313.pyc181150644editdlrm
pprint.cpython-313.pyc297130644editdlrm
profile.cpython-313.pyc225780644editdlrm
pstats.cpython-313.pyc378720644editdlrm
pty.cpython-313.pyc74200644editdlrm
pyclbr.cpython-313.pyc151590644editdlrm
pydoc.cpython-313.pyc1397200644editdlrm
py_compile.cpython-313.pyc100840644editdlrm
queue.cpython-313.pyc173480644editdlrm
quopri.cpython-313.pyc95750644editdlrm
random.cpython-313.pyc352710644editdlrm
reprlib.cpython-313.pyc111750644editdlrm
rlcompleter.cpython-313.pyc85870644editdlrm
runpy.cpython-313.pyc144060644editdlrm
sched.cpython-313.pyc76120644editdlrm
secrets.cpython-313.pyc25190644editdlrm
selectors.cpython-313.pyc263700644editdlrm
shelve.cpython-313.pyc133060644editdlrm
shlex.cpython-313.pyc148670644editdlrm
shutil.cpython-313.pyc674670644editdlrm
signal.cpython-313.pyc45590644editdlrm
site.cpython-313.pyc316620644editdlrm
smtplib.cpython-313.pyc473750644editdlrm
socket.cpython-313.pyc422340644editdlrm
socketserver.cpython-313.pyc346670644editdlrm
sre_compile.cpython-313.pyc6420644editdlrm
sre_constants.cpython-313.pyc6450644editdlrm
sre_parse.cpython-313.pyc6380644editdlrm
ssl.cpython-313.pyc652190644editdlrm
stat.cpython-313.pyc55380644editdlrm
statistics.cpython-313.pyc711130644editdlrm
string.cpython-313.pyc116660644editdlrm
stringprep.cpython-313.pyc252750644editdlrm
struct.cpython-313.pyc3400644editdlrm
subprocess.cpython-313.pyc819690644editdlrm
symtable.cpython-313.pyc232110644editdlrm
tabnanny.cpython-313.pyc124320644editdlrm
tarfile.cpython-313.pyc1258450644editdlrm
tempfile.cpython-313.pyc410080644editdlrm
textwrap.cpython-313.pyc179490644editdlrm
this.cpython-313.pyc14270644editdlrm
threading.cpython-313.pyc633120644editdlrm
timeit.cpython-313.pyc146530644editdlrm
token.cpython-313.pyc35880644editdlrm
tokenize.cpython-313.pyc254490644editdlrm
trace.cpython-313.pyc339780644editdlrm
traceback.cpython-313.pyc721390644editdlrm
tracemalloc.cpython-313.pyc274280644editdlrm
tty.cpython-313.pyc26790644editdlrm
turtle.cpython-313.pyc1751510644editdlrm
types.cpython-313.pyc155600644editdlrm
typing.cpython-313.pyc1545970644editdlrm
uuid.cpython-313.pyc323970644editdlrm
warnings.cpython-313.pyc295530644editdlrm
wave.cpython-313.pyc332520644editdlrm
weakref.cpython-313.pyc318180644editdlrm
webbrowser.cpython-313.pyc269010644editdlrm
zipapp.cpython-313.pyc104090644editdlrm
zipimport.cpython-313.pyc265220644editdlrm
_aix_support.cpython-313.pyc47320644editdlrm
_android_support.cpython-313.pyc76370644editdlrm
_apple_support.cpython-313.pyc34970644editdlrm
_collections_abc.cpython-313.pyc467080644editdlrm
_colorize.cpython-313.pyc40260644editdlrm
_compat_pickle.cpython-313.pyc72070644editdlrm
_compression.cpython-313.pyc78200644editdlrm
_ios_support.cpython-313.pyc27310644editdlrm
_markupbase.cpython-313.pyc124480644editdlrm
_opcode_metadata.cpython-313.pyc106930644editdlrm
_osx_support.cpython-313.pyc181420644editdlrm
_pydatetime.cpython-313.pyc945900644editdlrm
_pydecimal.cpython-313.pyc2170580644editdlrm
_pyio.cpython-313.pyc1117930644editdlrm
_pylong.cpython-313.pyc111730644editdlrm
_py_abc.cpython-313.pyc72070644editdlrm
_sitebuiltins.cpython-313.pyc49170644editdlrm
_strptime.cpython-313.pyc345000644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc585830644editdlrm
_threading_local.cpython-313.pyc55380644editdlrm
_weakrefset.cpython-313.pyc120640644editdlrm
__future__.cpython-313.pyc47370644editdlrm
__hello__.cpython-313.pyc9810644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/__pycache__/optparse.cpython-313.pyc (67594B)
eSrSr/SQrSrSSKrSSKrSSKrSrSSKJrJ r \r "S S \ 5r "S S \ 5r"SS\5r"SS\ 5r"SS\ 5r"SS\5r"SS5r"SS\5r"SS\5rSrSr\\ "S54\\ "S54\\ "S54\\ "S 54S!.rS"rS#rS$r"S%S&5rS'rS(r "S)S*5r!"S+S,5r""S-S.\"5r#"S/S0\"5r$S1r%\r&g!\ a SrS r Nf=f)2aA 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_HELPSUPPRESS_USAGEValuesOptionContainer OptionGroup OptionParser HelpFormatterIndentedHelpFormatterTitledHelpFormatter OptParseError OptionErrorOptionConflictErrorOptionValueErrorBadOptionError 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. NcLSURR[U5U4-$)Nz<%s at 0x%x: %s>) __class____name__idselfs ./opt/imh/python3.13/lib/python3.13/optparse.py_reprrOs" !8!8"T(D I II)gettextngettextcU$N)messages rrr\srcUS:XaU$U$Nr!)singularpluralns rrr_s 6O rc \rSrSrSrSrSrg)r gcXlgr msgrr-s r__init__OptParseError.__init__hsrcUR$r r,rs r__str__OptParseError.__str__ks xxrr,N)r __module__ __qualname____firstlineno__r/r2__static_attributes__r!rrr r gs rr c$\rSrSrSrSrSrSrg)rozQ Raised if an Option instance is created with invalid or inconsistent arguments. c0Xl[U5Ulgr )r-str option_id)rr-options rr/OptionError.__init__usVrcxUR(aSUR<SUR<3$UR$)Nzoption z: )r<r-rs rr2OptionError.__str__ys' >>>&*nndhh? ?88Or)r-r<Nrr4r5r6__doc__r/r2r7r!rrrros %rrc\rSrSrSrSrg)rz= Raised if conflicting options are added to an OptionParser. r!Nrr4r5r6rBr7r!rrrrsrrc\rSrSrSrSrg)rzG Raised if an invalid option value is encountered on the command line. r!NrEr!rrrrsrrc$\rSrSrSrSrSrSrg)rz: Raised if an invalid option is seen on the command line. cXlgr opt_strrrLs rr/BadOptionError.__init__s rc2[S5UR-$)Nzno such option: %s)_rLrs rr2BadOptionError.__str__s%&55rrKNrAr!rrrrs6rrc$\rSrSrSrSrSrSrg)AmbiguousOptionErrorz< Raised if an ambiguous option is seen on the command line. c:[RX5 X lgr )rr/ possibilities)rrLrVs rr/AmbiguousOptionError.__init__s.*rch[S5URSRUR54-$)Nzambiguous option: %s (%s?), )rPrLjoinrVrs rr2AmbiguousOptionError.__str__s2./<<4+=+=!>?@ Ar)rVNrAr!rrrSrSs+ArrScv\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rSrSrSrSrSrSrg)r a5 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"). nonecbSUlXlUc"[[RS5nUS-nX0l[U[US- US-55=Ul Ul SUl SUl SUlX@lSUl0UlSUlSUlg![ [ 4a SnNf=f) NCOLUMNSPrz%defaultz%s %sz%s=%s)parserindent_incrementintosenvironKeyError ValueErrorwidthminmax help_positionmax_help_positioncurrent_indentlevel help_width short_first default_tagoption_strings_short_opt_fmt _long_opt_fmtrrerorkrss rr/HelpFormatter.__init__s  0 = BJJy12 QJE %s52:7G!7K'LM NT3 &% %$j)  sBB.-B.cXlgr )rdrrds r set_parserHelpFormatter.set_parsers rcFUS;a[SU-5eSU-S-Ulg)N) z/invalid metavar delimiter for short options: %r%s)rjrvrdelims rset_short_opt_delimiter%HelpFormatter.set_short_opt_delimiters2  !AEIK K"UlT1rcFUS;a[SU-5eSU-S-Ulg)N)=rz.invalid metavar delimiter for long options: %rr)rjrwrs rset_long_opt_delimiter$HelpFormatter.set_long_opt_delimiters2  "@5HJ J!E\D0rclU=RUR- slU=RS- slgr$rprerqrs rindentHelpFormatter.indents& t444 a rcU=RUR-slURS:dS5eU=RS-slg)NrzIndent decreased below 0.r%rrs rdedentHelpFormatter.dedents@ t444""a'D)DD' a rc[S5eNzsubclasses must implementNotImplementedErrorrusages r format_usageHelpFormatter.format_usage!"=>>rc[S5errrheadings rformat_headingHelpFormatter.format_headingrrc[URUR- S5nSUR-n[R"UUUUS9$)zi Format a paragraph of free-form text for inclusion in the help output at the current indentation level. r)initial_indentsubsequent_indent)rmrkrptextwrapfill)rtext text_widthrs r _format_textHelpFormatter._format_textsK d&9&992> T(((}}T',2/57 7rc:U(aURU5S-$gN rrr descriptions rformat_description HelpFormatter.format_descriptions $$[1D8 8rc@U(aSURU5-S-$grr)repilogs r format_epilogHelpFormatter.format_epilogs# $++F33d: :rcBURbUR(d UR$URRR UR 5nU[ LdUc URnURRUR[U55$r ) rdrthelpdefaultsgetdest NO_DEFAULTNO_DEFAULT_VALUEreplacer;)rr= default_values rexpand_defaultHelpFormatter.expand_defaultsv ;; d&6&6;;  ,,00= J &-*? 11M{{""4#3#3S5GHHrc /nURUnURUR- S- n[U5U:aSURSU4-nURnOSURSXC4-nSnUR U5 UR (aUR U5n[R"X`R5nUR SUSUS4-5 URUSSVs/sHnSURSU4-PM sn5 OUSS:waUR S5 SRU5$s snf) Nrbz%*s%s rz %*s%-*s rr%r) rurnrplenappendrrrwraprrextendrZ) rr=resultopts opt_width indent_first help_text help_lineslines r format_optionHelpFormatter.format_option(s9""6*&&)<)<>D--L$"5"5r9!KKDL d ;;++F3I!y//BJ MM)|RA&GG H MM'1!"~7'5t%(:(:B'EE'57 8 "X  MM$ wwv 7s/D>cUR5 SnURHDnURU5nX@RU'[ U[ U5UR -5nMF UR5 URHWnURHDnURU5nX@RU'[ U[ U5UR -5nMF MY UR5 UR5 [US-UR5Ul [ URUR- S5Ul g)Nrrbr)r option_listformat_option_stringsrurmrrp option_groupsrrlrornrkrr)rrdmax_lenoptstringsgroups rstore_option_strings"HelpFormatter.store_option_stringsKs %%C005G'.   $'3w<$2E2E#EFG& ))E((44S9+2##C(gs7|d6I6I'IJ)*   1d.D.DEdjj4+=+==rBrcUR5(aUR=(d URR5nURVs/sHnUR X24-PM nnUR Vs/sHnURXR4-PM nnOURnUR nUR(aXF-nOXd-nSRU5$s snfs snf)z@Return a comma-separated list of option strings & metavariables.rY) takes_valuemetavarrupper _short_optsrv _long_optsrwrsrZ)rr=rsopt short_optslopt long_optsrs rr#HelpFormatter.format_option_strings]s     nn; (9(9(;G&,&8&8:&8d--?&8 :&,%6%68%6T++to=%6 8I ++J))I   )D)Dyy:8s C;C ) rwrvrprtrnrrrerqrorurdrsrkN)rr4r5r6rBrr/r|rrrrrrrrrrrrrr7r!rrr r s^'R%22 1  ?? 7 I!FC$rr c6\rSrSrSrSSjrSrSrSrg) r ipz.Format help with indented section bodies. Nc2[RXX#U5 gr r r/rxs rr/IndentedHelpFormatter.__init__t  $5k Krc[S5U-$)Nz Usage: %s )rPrs rr"IndentedHelpFormatter.format_usage|s%''rc&SURSU4-$)Nz%*s%s: r)rprs rr$IndentedHelpFormatter.format_headingsT00"g>>>rr!)rbNr% rr4r5r6rBr/rrr7r!rrr r ps%#$#% K(?rr c6\rSrSrSrSSjrSrSrSrg) r iz1Format help with underlined section headers. Nc2[RXX#U5 gr rrxs rr/TitledHelpFormatter.__init__rrcFUR[S55<SU<S3$)NUsagez r)rrPrs rr TitledHelpFormatter.format_usages!007 ?7# $% %r)NODEFAULTc\rSrSrSr/SQrSrSrSrSr Sr S r \ \ \ \ \ S .rS rS rS rSrSrSrSrSrSrSrSrSr\\\\\\\/rSr\rSrSrSr Sr!Sr"Sr#Sr$g )ria2 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 ) actionrrdefaultnargsconstrcallback callback_argscallback_kwargsrr) store store_const store_true store_falser append_constcountrrversion)rrrr rr!r")rrr)rr)rr!)stringrfrrrchoice)rfrrrr%Nc/Ul/UlURU5nURU5 UR U5 UR H nU"U5 M gr )rr_check_opt_strings_set_opt_strings _set_attrs CHECK_METHODS)rrattrscheckers rr/Option.__init__4sX&&t, d# ))G DM*rchUVs/sH o"(dM UPM nnU(d [S5eU$s snf)Nz+at least one option string must be supplied) TypeErrorrrrs rr'Option._check_opt_stringsGs3 $+tst+IJ J ,s //cdUHn[U5S:a[SU-U5e[U5S:Xa>USS:Xa USS:wd[SU-U5eURRU5 MnUSSS:Xa USS:wd[SU-U5eURRU5 M g) Nrbz>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)rrrrrr0s rr(Option._set_opt_stringsPsC3x!|!;=@ABFHHSQA# #a&C-%HJMN  '',AaD(SVs]%CEHI&&s+%rcURH>nX!;a[XX5 X MUS:Xa[X[5 M2[XS5 M@ U(a7[UR 55n[ SSR U5-U5eg)Nrzinvalid keyword arguments: %srY)ATTRSsetattrrsortedkeysrrZ)rr+attrs rr)Option._set_attrses}JJD}EK0K9$D 3D- 5::<(E/$))E2BB  rcURcSUlgURUR;a[SUR-U5eg)Nrzinvalid action: %r)rACTIONSrrs r _check_actionOption._check_actionxs? ;; !DK [[ ,2T[[@$G G-rcURc8URUR;aURbSUlgSUlgg[ UR[5(aURR UlURS:XaSUlURUR ;a[SUR-U5eURUR;a[SUR-U5eg)Nr%r$r;zinvalid option type: %rz$must not supply a type for action %r) rrALWAYS_TYPED_ACTIONSr isinstancerTYPESr TYPED_ACTIONSrs r _check_typeOption._check_type~s 99 {{d777<<+ (DI!)DI 8$))T** II.. yyE!$ yy *!";dii"GNN{{$"4"44!:T[[H$PP5rchURS:Xa|URc [SU5e[UR[[ 45(d=[S[ [UR55RS5S-U5egURb[SUR-U5eg)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)rrrrCtuplelistr;splitrs r _check_choiceOption._check_choices 99 ||#!EtMM udm<<!G$t||,-33C8;<=ACC=\\ %5 A4I I&rc,URUR;=(d URSLnURcYU(aQUR(a(URSSSR SS5UlgUR SSUlggg)Nrrbr3rPr%)r STORE_ACTIONSrrrrr)rrs r _check_destOption._check_dests{{d&8&88-yy,  99  OOA.qr2::3D  ,,Q/2 "- rcURUR;a'URb[SUR-U5egg)Nz*'const' must not be supplied for action %r)r CONST_ACTIONSrrrs r _check_constOption._check_constsB ;;d00 0TZZ5K"B Cz !%%+D))/RF MM$U DT DV Dv      KKM y  " KKM04;;>? ?r)rrrrrr)%rr4r5r6rBr7r>rPrErBrTrDrrrir*r/r'r(r)r?rFrMrQrUrXr]r2r__repr__rrfrjrnrsrqr7r!rrrrs* E GM!M &%M DE$!. - - - , L M &,*&H P0 I 3 N8# " !!$ &M<H%'-H @rr SUPPRESSHELP SUPPRESSUSAGEcZ\rSrSrS SjrSr\rSrSr Sr Sr SS jr SS jr S rS rg)ri7Nc^U(a&UR5Hup#[XU5 M ggr )itemsr8)rrr;rs rr/Values.__init__9s' '~~/ C( 0 rc,[UR5$r )r;__dict__rs rr2Values.__str__>s4==!!rc[U[5(aURUR:H$[U[5(aURU:H$[$r )rCrrr\NotImplemented)rothers r__eq__ Values.__eq__CsD eV $ $==ENN2 2 t $ $==E) )! !rc`[U5HnX!;dM XnUcM[XU5 M! g)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)dirr8)rr\r;dvals r_update_carefulValues._update_carefulKs.ID|z#D- rc:URRU5 g)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)rupdate)rr\s r _update_looseValues._update_looseXs T"rc~US:XaURU5 gUS:XaURU5 g[SU-5e)Ncarefulloosezinvalid update mode: %r)rrrj)rr\modes r_updateValues._update`s> 9    & W_   t $6=> >rcv[U5 [RUnUR[ U5U5 gr ) __import__sysmodulesrvars)rmodnamermods r read_moduleValues.read_modulehs*7kk'" T#Y%rcp0n[[U5R5U5 URX25 gr )execopenreadr)rfilenamerrs r read_fileValues.read_filems* T(^ "D) T rch[X5(a [X5c [XU5 [X5$r )hasattrgetattrr8)rr;r s rrvValues.ensure_valuers,t""gd&9&A D &t""rr!r )r)rr4r5r6r/r2rr}rrrrrrrvr7r!rrrr7s6) "H" .#?& ! #rrcx\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rSrSrSrSrSrSrg)rixa2 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. ctUR5 XlURU5 URU5 gr )_create_option_list option_classset_conflict_handlerset_description)rrconflict_handlerrs rr/OptionContainer.__init__s3   "( !!"23 [)rc.0Ul0Ul0Ulgr  _short_opt _long_optrrs r_create_option_mappings'OptionContainer._create_option_mappingss rcjURUlURUlURUlgr rr{s r_share_option_mappings&OptionContainer._share_option_mappingss)!++)) rc8US;a[SU-5eXlg)N)errorresolvez$invalid conflict_resolution value %r)rjr)rhandlers rr$OptionContainer.set_conflict_handlers" . .CgMN N 'rcXlgr rrs rrOptionContainer.set_descriptions&rcUR$r rrs rget_descriptionOptionContainer.get_descriptionsrcU?U?U?gzsee OptionParser.destroy().Nrrs rdestroyOptionContainer.destroys O N Mrc >/nURH3nX0R;dMURX0RU45 M5 URH3nX0R;dMURX0RU45 M5 U(GaUR nUS:Xa1[ SSRUVs/sHoUSPM sn5-U5eUS:XaUHup6URS5(a)URRU5 URU O(URRU5 URU UR(aMUR(aMURRRU5 M gggs snf)Nrz conflicting option string(s): %srYrrr4) rrrrrrrrZ startswithremove containerr)rr= conflict_optsrrcoc_options r_check_conflictOptionContainer._check_conflictse %%Coo%$$c??3+?%@A&$$Cnn$$$c>>#+>%?@% ++G'!)6ii ?2A ?@AI%'4OS~~d++ ++2237 NN3/ ,,33C8 OOC0$000H4G4G4G **66==hG(5&  !@s8Fc[US[5(aUR"U0UD6nOJ[U5S:Xa0U(d)USn[U[5(d[ SU-5eO [ S5eUR U5 URRU5 Xl URHnX0RU'M URHnX0RU'M URbkUR[ La%URUR"UR'U$URUR";aSUR"UR'U$)z>) +rcbURRU5nUcURRU5nUc[SU-5eURHnURU M UR HnURU M UR RRU5 g)Nzno such option %r) rrrrjrrrrr)rrLr=rs r remove_optionOptionContainer.remove_options$$W- >^^''0F >07:; ;%%C$&$$Cs#%$$++F3rcUR(dg/nURH8nUR[LdMURUR U55 M: SR U5$Nr)rrrrrrZ)r formatterrr=s rformat_option_help"OptionContainer.format_option_helpsV&&F;;-/ i55f=>'wwvrc@URUR55$r )rrrrs rr"OptionContainer.format_description(s++D,@,@,BCCrc/nUR(a URURU55 UR(a URUR U55 SR U5$)Nr)rrrrrrZrrrs r format_helpOptionContainer.format_help+sV    MM$11)< =    MM$11)< =yy  r)rrrrrrN)rr4r5r6rBr/rrrrrrrrrrrrrrrr7r!rrrrxsY< *(( ' H6<$ -+ 4 D!rrc6\rSrSrS SjrSrSrSrSrSr g) ri4NcrXl[RXRURU5 X lgr )rdrr/rrtitle)rrdrrs rr/OptionGroup.__init__6s.   %%v'>'>  M rcH/UlURUR5 gr )rrrdrs rrOptionGroup._create_option_list<s ##DKK0rcXlgr )r)rrs r set_titleOptionGroup.set_title@s rc2[RU5 U?gr)rrrrs rrOptionGroup.destroyCs%  rcURUR5nUR5 U[R X5- nUR 5 U$r )rrrrrrrs rrOptionGroup.format_helpJsH))$**5/--d>> r)rrdrr ) rr4r5r6r/rrrrr7r!rrrr4s 1rrc 2\rSrSrSr/rSS\SSSSSSS4 SjrSrSr S r S r S,S jr S r S rSrSrSrSrSrSrSrSrSrSrS-SjrSrSrSrSrSrSrSr S r!S.S!jr"S"r#S#r$S/S$jr%S%r&S/S&jr'S/S'jr(S(r)S/S)jr*S/S*jr+S+r,g)0r iRa8 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. NrTc .[RXXV5 URU5 XlX@lSUlSUlUc [5nXplURRU5 Xl URUUS9 UR5 g)NT)add_help) rr/ set_usageprogr#allow_interspersed_argsprocess_default_valuesr rr|r_populate_option_list_init_parsing_state) rrrrr#rrradd_help_optionrrs rr/OptionParser.__init__s    0 ? u  '+$&*#  -/I" !!$' "";,; # =   "rc[RU5 URHnUR5 M U?U?U?g)z 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)rrrrr)rrs rrOptionParser.destroys< %''E MMO(     Nrc@/Ul/UlUR5 gr )rrrrs rr OptionParser._create_option_lists $$&rc:URSSS[S5S9 g)Nz-hz--helprzshow this help message and exitrrrrPrs r_add_help_optionOptionParser._add_help_options$ h%@A  Crc8URSS[S5S9 g)Nz --versionr#z&show program's version number and exitrrrs r_add_version_option OptionParser._add_version_options"  (GH  JrcUR(aURUR5 U(aURU5 UR(aUR5 U(aUR 5 ggr )standard_option_listrr#rr)rrrs rr"OptionParser._populate_option_listsW  $ $   T66 7    [ ) <<  $ $ &   ! ! # rc.SUlSUlSUlgr )rargslargsrrrs rr  OptionParser._init_parsing_states   rcUc[S5UlgU[LaSUlgUR5R S5(a USSUlgXlg)Nz%prog [options]zusage: )rPrrrrrs rrOptionParser.set_usagesL =,-DJ n $DJ [[] % %i 0 0qrDJJrcSUlg)zSet 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.TNrrs renable_interspersed_args%OptionParser.enable_interspersed_argss (,$rcSUlg)zSet 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 rdisable_interspersed_args&OptionParser.disable_interspersed_argss (-$rcXlgr )r)rrss rset_process_default_values'OptionParser.set_process_default_values s&-#rc X RU'gr )r)rrr s r set_defaultOptionParser.set_defaults# drc :URRU5 gr )rr)rr{s r set_defaultsOptionParser.set_defaultss V$rcURSSnURHnURUR5 M U$r )rrr)roptionsrs r_get_all_optionsOptionParser._get_all_optionss9""1%''E NN5,, -(rcUR(d[UR5$URR5nUR 5HbnUR UR 5n[U[5(dM5UR5nURXC5XR 'Md [U5$r ) rrrcopyr4rrrCr;rfrj)rrr=rrLs rget_default_valuesOptionParser.get_default_valuess**$--( (==%%'++-Fll6;;/G'3'' //1(.(:(:7(L% . hrcT[US[5(a[U/UQ70UD6nOd[U5S:XaJU(dCUSn[U[5(d[ SU-5eUR ULa [ S5eO [ S5eURRU5 U$)Nrr%znot an OptionGroup instance: %rz"invalid OptionGroup (wrong parser)r) rCr;rrr/rdrjrr)rrzr{rs radd_option_groupOptionParser.add_option_group+s d1gs # #6t6v6E Y!^FGEe[11 AE IJJ||4' !EFF(/0 0 !!%( rcURRU5=(d URRU5nU(aURULa UR$gr )rrrr)rrLr=s rget_option_groupOptionParser.get_option_group;sO//%%g....$$W-  f&&d2## #rc8Uc[RSS$USS$r$)rargv)rrzs r _get_argsOptionParser._get_argsEs <88AB< 7Nrc2URU5nUcUR5nX0l/=UlnX lUR XCU5nXC-nURX!5$![ [4a$nUR[U55 SnANDSnAff=f)a 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) rBr8rrrr _process_argsrrrr; check_values)rrzrrrrstoperrs r parse_argsOptionParser.parse_argsKst$ >,,.F  U  !%%eF;D}  ..  01 ! JJs3x  !sA""B2BBcX4$)as 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!)rrrrzs rrFOptionParser.check_valuesrs ~rcU(aUSnUS:XaUS gUSSS:XaURX#5 OQUSSS:Xa![U5S:aURX#5 O'UR(aUR U5 US OgU(aMgg)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'. rr4Nrbr%r3)_process_long_optr_process_short_optsrr)rrrrrargs rrEOptionParser._process_argss(Cd{!HQqT!&&u5RaCCHqL((7-- S!!H'erc,[XR5$)z_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_abbrevr)rrs r_match_long_optOptionParser._match_long_optsS..11rc<URS5nSU;a)URSS5upEURSU5 SnOUnSnURU5nURUnUR 5(aiUR n[U5U:a"UR[SSU5XHS.-5 OSUS:XaURS5n O;[USU5n USU2 O'U(aUR[S 5U-5 OSn URUW X 5 g) Nrrr%TF.%(option)s option requires %(number)d argument/%(option)s option requires %(number)d argumentsr=numberz%s option does not take a value) poprLinsertrTrrrrrrrJrPrs) rrrrrPrnext_arghad_explicit_valuer=rr s rrNOptionParser._process_long_optsiil #:!iiQ/OS LLH %!% C!& ""3'$     LLE5zE! 8DE),=>?! ! eAen-!E'N  JJq:;cA BEsE60rc6URS5nSnSnUSSHnSU-nURRU5nUS- nU(d [U5eUR 5(aU[ U5:aUR SX5S5 SnURn [ U5U :a"UR[SSU 5XyS.-5 O.U S:XaURS5n O[USU 5n USU 2 OSn URUW X 5 U(dM g g) NrFr%r3TrWrXrY) r[rrrrrr\rrrrJrs) rrrrrPrGichrr=rr s rrO OptionParser._process_short_optss!iil ab'B(C__((-F FA$S))!!##s3x<LLCG,D u:%JJxHI -0!A BCaZ!IIaLE!%%.1Eag NN3v 4tArcURc0[RR[R S5$UR$re)rrgpathbasenamerrArs r get_prog_nameOptionParser.get_prog_names3 99 77##CHHQK0 099 rcBURSUR55$)Nz%prog)rrg)rss rexpand_prog_nameOptionParser.expand_prog_namesyy$"4"4"677rc8URUR5$r )rkrrs rrOptionParser.get_descriptions$$T%5%566rc|U(a[RRU5 [R"U5 gr )rstderrwriterx)rstatusr-s rrxOptionParser.exits#  JJ  S ! rcUR[R5 URSUR 5<SU<S35 g)zerror(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. rbz : error: rN) print_usagerrprxrgr.s rrOptionParser.errors2 $ !$*<*<*>DErcUR(a4URRURUR55$gr)rrrrkrs r get_usageOptionParser.get_usage#s7 ::>>..%%djj13 3rcXUR(a[UR5US9 gg)a1print_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)rprintrxrr|s rruOptionParser.print_usage*s! :: $.." . rc\UR(aURUR5$gr)r#rkrs r get_versionOptionParser.get_version6s! <<((6 6rcXUR(a[UR5US9 gg)aprint_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. r{N)r#r}rr~s rryOptionParser.print_version<s# << $""$4 0 rcUc URnURU5 /nURUR[ S555 UR 5 UR (a5UR[RX55 URS5 URH4nURURU55 URS5 M6 UR5 SRUSS5$)NOptionsrrr) rrrrrPrrrrrrrrZ)rrrrs rrOptionParser.format_option_helpGs  I&&t, i..q|<=    MM/<rBrIrFrErTrNrOrgrkrrxrrxrurryrrrrwr7r!rrr r RsBH!$")!!%#D $' C J $ ,-.$%  "  %/N f2"1H$R 87 F / 1$"4 'rr c X;aU$UR5Vs/sHnURU5(dMUPM nn[U5S:XaUS$U(d [U5eUR 5 [ X5es snf)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)r:rrrsortrS)rjwordmapwordrVs rrSrSts |+2,,.0.$ OOA.. 0 }  " # # # #    &q8 80s BB)'rB __version____all__ __copyright__rrgrrrr ImportErrorrP Exceptionr rrrrrSr r r rrrrr rrrrrrrrrr rSrr!rrrsy.  $ @J ) Y= ;   6m6 AN AMM^?]?&G=G&  %a l3%q|4!1%5#67%q|47 G% nnf " #>#>#By!y!x?<]'O]'D9: m1 sC:: D D