Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python3.6/__pycache__/



⬆️ Go up: /lib64/python3.6

πŸ“„ Viewing: getopt.cpython-36.pyc

3


 \AοΏ½@sοΏ½dZddddgZddlZyddlmZWnek
rDdd	οΏ½ZYnXGd
dοΏ½deοΏ½ZeZgfddοΏ½Z	gfddοΏ½Z
d
dοΏ½ZddοΏ½ZddοΏ½Z
ddοΏ½ZedkrοΏ½ddlZee	ejddοΏ½dddgοΏ½οΏ½dS)aοΏ½Parser for command line options.

This module helps scripts to parse the command line arguments in
sys.argv.  It supports the same conventions as the Unix getopt()
function (including the special meanings of arguments of the form `-'
and `--').  Long options similar to those supported by GNU software
may be used as well via an optional third argument.  This module
provides two functions and an exception:

getopt() -- Parse command line options
gnu_getopt() -- Like getopt(), but allow option and non-option arguments
to be intermixed.
GetoptError -- exception (class) raised with 'opt' attribute, which is the
option involved with the exception.
οΏ½GetoptErrorοΏ½errorοΏ½getoptοΏ½
gnu_getoptοΏ½N)οΏ½gettextcCs|S)NοΏ½)οΏ½srrοΏ½/usr/lib64/python3.6/getopt.pyοΏ½_)sr
c@s&eZdZdZdZdddοΏ½ZddοΏ½ZdS)rοΏ½cCs||_||_tj|||οΏ½dS)N)οΏ½msgοΏ½optοΏ½	ExceptionοΏ½__init__)οΏ½selfrr
rrr	r.szGetoptError.__init__cCs|jS)N)r)rrrr	οΏ½__str__3szGetoptError.__str__N)r)οΏ½__name__οΏ½
__module__οΏ½__qualname__r
rrrrrrr	r+s
cCsοΏ½g}t|οΏ½tdοΏ½kr|g}nt|οΏ½}xοΏ½|rοΏ½|djdοΏ½rοΏ½|ddkrοΏ½|ddkr^|ddοΏ½}P|djdοΏ½rοΏ½t||dddοΏ½||ddοΏ½οΏ½\}}q&t||dddοΏ½||ddοΏ½οΏ½\}}q&W||fS)a@getopt(args, options[, long_options]) -> opts, args

    Parses command line options and parameter list.  args is the
    argument list to be parsed, without the leading reference to the
    running program.  Typically, this means "sys.argv[1:]".  shortopts
    is the string of option letters that the script wants to
    recognize, with options that require an argument followed by a
    colon (i.e., the same format that Unix getopt() uses).  If
    specified, longopts is a list of strings with the names of the
    long options which should be supported.  The leading '--'
    characters should not be included in the option name.  Options
    which require an argument should be followed by an equal sign
    ('=').

    The return value consists of two elements: the first is a list of
    (option, value) pairs; the second is the list of program arguments
    left after the option list was stripped (this is a trailing slice
    of the first argument).  Each option-and-value pair returned has
    the option as its first element, prefixed with a hyphen (e.g.,
    '-x'), and the option argument as its second element, or an empty
    string if the option has no argument.  The options occur in the
    list in the same order in which they were found, thus allowing
    multiple occurrences.  Long and short options may be mixed.

    rrοΏ½-z--οΏ½NοΏ½)οΏ½typeοΏ½listοΏ½
startswithοΏ½do_longsοΏ½	do_shorts)οΏ½argsοΏ½	shortoptsοΏ½longoptsοΏ½optsrrr	r8s (*cCs6g}g}t|tοΏ½r|g}nt|οΏ½}|jdοΏ½r>|ddοΏ½}d}ntjjdοΏ½rPd}nd}xοΏ½|οΏ½r,|ddkrz||ddοΏ½7}P|ddd	οΏ½dkrοΏ½t||dd	dοΏ½||ddοΏ½οΏ½\}}qV|dddοΏ½d
krοΏ½|dd
krοΏ½t||dddοΏ½||ddοΏ½οΏ½\}}qV|οΏ½r||7}PqV|j	|dοΏ½|ddοΏ½}qVW||fS)agetopt(args, options[, long_options]) -> opts, args

    This function works like getopt(), except that GNU style scanning
    mode is used by default. This means that option and non-option
    arguments may be intermixed. The getopt() function stops
    processing options as soon as a non-option argument is
    encountered.

    If the first character of the option string is `+', or if the
    environment variable POSIXLY_CORRECT is set, then option
    processing stops as soon as a non-option argument is encountered.

    οΏ½+rNTZPOSIXLY_CORRECTFrz--rr)
οΏ½
isinstanceοΏ½strrrοΏ½osοΏ½environοΏ½getrrοΏ½append)rrrr Z	prog_argsZall_options_firstrrr	rcs2

( (cCsοΏ½y|jdοΏ½}Wntk
r&d}Yn X|d|οΏ½||ddοΏ½}}t||οΏ½\}}|rοΏ½|dkrοΏ½|svttdοΏ½||οΏ½οΏ½|d|ddοΏ½}}n|dk	rοΏ½ttdοΏ½||οΏ½οΏ½|jd||pοΏ½dfοΏ½||fS)NοΏ½=rzoption --%s requires argumentrz%option --%s must not have an argumentz--r)οΏ½indexοΏ½
ValueErrorοΏ½
long_has_argsrr
r')r r
rrοΏ½iοΏ½optargοΏ½has_argrrr	rοΏ½s
rcsοΏ½οΏ½fddοΏ½|DοΏ½}|s(ttdοΏ½οΏ½οΏ½οΏ½οΏ½οΏ½|kr8dοΏ½fSοΏ½d|krLdοΏ½fSt|οΏ½dkrjttdοΏ½οΏ½οΏ½οΏ½οΏ½t|οΏ½dksztοΏ½|d	}|jdοΏ½}|rοΏ½|dd
οΏ½}||fS)Ncsg|]}|jοΏ½οΏ½r|οΏ½qSr)r)οΏ½.0οΏ½o)r
rr	οΏ½
<listcomp>οΏ½sz!long_has_args.<locals>.<listcomp>zoption --%s not recognizedFr(Trzoption --%s not a unique prefixrοΏ½οΏ½οΏ½)rr
οΏ½lenοΏ½AssertionErrorοΏ½endswith)r
rZ
possibilitiesZunique_matchr.r)r
r	r+οΏ½s
r+cCsοΏ½xοΏ½|dkrοΏ½|d|ddοΏ½}}t||οΏ½rj|dkr^|sHttdοΏ½||οΏ½οΏ½|d|ddοΏ½}}|d}}nd}|jd||fοΏ½qW||fS)Nrrrzoption -%s requires argumentr)οΏ½
short_has_argrr
r')r Z	optstringrrr
r-rrr	rοΏ½s

rcCsXx@tt|οΏ½οΏ½D]0}|||ko(dknr|jd|dοΏ½SqWttdοΏ½||οΏ½οΏ½dS)NοΏ½:rzoption -%s not recognized)οΏ½ranger3rrr
)r
rr,rrr	r6οΏ½sr6οΏ½__main__rza:bzalpha=Zbeta)οΏ½__doc__οΏ½__all__r$rr
οΏ½ImportErrorrrrrrrr+rr6rοΏ½sysοΏ½printοΏ½argvrrrr	οΏ½<module>s"+2


πŸ“