GIF89a; EcchiShell v1.0
//usr/lib64/lib64/lib64/python2.7/Demo/. Flags for the subcommand are defined by defining class or instance variables named flags_. If there's no command, method default() is called. The __doc__ strings for the do_ methods are used for the usage message, printed after the general usage message which is the class variable UsageMessage. The class variable PostUsageMessage is printed after all the do_ methods' __doc__ strings. The method's return value can be a suggested exit status. [XXX Need to rewrite this to clarify it.] Common usage is to derive a class, instantiate it, and then call its run() method; by default this takes its arguments from sys.argv[1:]. s;usage: (name)s [flags] subcommand [subflags] [argument] ...tcCsdS(s&Constructor, present for completeness.N((tself((s(/usr/lib64/python2.7/Demo/pdist/cmdfw.pyt__init__#sc CsŒddl}ddl}|dkr4|jd}ny|j||jƒ\}}Wn |jk ru}|j|ƒSX|j|ƒ|s|jƒ|j ƒS|d}d|}d|}yt ||ƒ} Wn"t k rò|jd|fƒSXyt ||ƒ} Wnt k rd} nXy |j|d| ƒ\}}Wn.|jk rp}|jd |t |ƒƒSX|jƒ| ||ƒSdS( s3Process flags, subcommand and options, then run it.iÿÿÿÿNiitdo_tflags_scommand %r unknownRssubcommand %s: ( tgetopttsystNonetargvt GlobalFlagsterrortusagetoptionstreadytdefaulttgetattrtAttributeErrortstr( RtargsRRtoptstmsgtcmdtmnametfnametmethodtflags((s(/usr/lib64/python2.7/Demo/pdist/cmdfw.pytrun's:            cCsR|rNddGHdGHx+|D]#\}}dG|GdGt|ƒGHqWddGHndS(sWProcess the options retrieved by getopt. Override this if you have any options.t-i(sOptions:toptiontvalueN(trepr(RRtota((s(/usr/lib64/python2.7/Demo/pdist/cmdfw.pyR Gs  cCsdS(s*Called just before calling the subcommand.N((R((s(/usr/lib64/python2.7/Demo/pdist/cmdfw.pyRQscCs$|r|GHn|ji|jjd6GHi}|j}x•xut|ƒD]g}|d dkrF|j|ƒrqqFnyt||ƒj}Wn d}nX|r­|||su