Pc@sdZdZdddddddd d d d d ddddgZddlZddlZddlZddl Z ddl Z ddl m ZdZdZdZdZdZdZdZdZdefdYZdZdefd YZdefd!YZd efd"YZdefd#YZd$Zdefd%YZ defd&YZ!d efd'YZ"d(e"fd)YZ#d*e"fd+YZ$d,e$fd-YZ%d.e$fd/YZ&d0e"fd1YZ'd2e"fd3YZ(d4e"fd5YZ)d6e"fd7YZ*d8e"fd9YZ+d:e"fd;YZ,defd<YZ-d efd=YZ.d>efd?YZ/d@e/fdAYZ0dBe0fdCYZ1dee/fdDYZ2dS(Es Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The following is a simple usage example that sums integers from the command-line and writes the result to a file:: parser = argparse.ArgumentParser( description='sum the integers at the command line') parser.add_argument( 'integers', metavar='int', nargs='+', type=int, help='an integer to be summed') parser.add_argument( '--log', default=sys.stdout, type=argparse.FileType('w'), help='the file where the sum should be written') args = parser.parse_args() args.log.write('%s' % sum(args.integers)) args.log.close() The module contains the following public classes: - ArgumentParser -- The main entry point for command-line parsing. As the example above shows, the add_argument() method is used to populate the parser with actions for optional and positional arguments. Then the parse_args() method is invoked to convert the args at the command-line into an object with attributes. - ArgumentError -- The exception raised by ArgumentParser objects when there are errors with the parser's actions. Errors raised while parsing the command-line are caught by ArgumentParser and emitted as command-line messages. - FileType -- A factory for defining types of files to be created. As the example above shows, instances of FileType are typically passed as the type= argument of add_argument() calls. - Action -- The base class for parser actions. Typically actions are selected by passing strings like 'store_true' or 'append_const' to the action= argument of add_argument(). However, for greater customization of ArgumentParser actions, subclasses of Action may be defined and passed as the action= argument. - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter, ArgumentDefaultsHelpFormatter -- Formatter classes which may be passed as the formatter_class= argument to the ArgumentParser constructor. HelpFormatter is the default, RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser not to change the formatting for help text, and ArgumentDefaultsHelpFormatter adds information about argument defaults to the help. All other classes in this module are considered implementation details. (Also note that HelpFormatter and RawDescriptionHelpFormatter are only considered public as object names -- the API of the formatter objects is still considered an implementation detail.) s1.1tArgumentParsert ArgumentErrortArgumentTypeErrortFileTypet HelpFormattertArgumentDefaultsHelpFormattertRawDescriptionHelpFormattertRawTextHelpFormattert NamespacetActiont ONE_OR_MOREtOPTIONALtPARSERt REMAINDERtSUPPRESSt ZERO_OR_MOREiN(tgettextcCst|dpt|dS(Nt__call__t __bases__(thasattr(tobj((s..\python\lib\argparse.pyt _callable^ss ==SUPPRESS==t?t*t+sA...s...t_unrecognized_argst_AttributeHoldercBs)eZdZdZdZdZRS(sAbstract base class that provides __repr__. The __repr__ method returns a string in the format:: ClassName(attr=name, attr=name, ...) The attributes are determined either by a class-level attribute, '_kwarg_names', or by inspecting the instance __dict__. cCst|j}g}x'|jD]}|jt|q"Wx1|jD]#\}}|jd||fqLWd|dj|fS(Ns%s=%rs%s(%s)s, (ttypet__name__t _get_argstappendtreprt _get_kwargstjoin(tselft type_namet arg_stringstargtnametvalue((s..\python\lib\argparse.pyt__repr__xscCst|jjS(N(tsortedt__dict__titems(R"((s..\python\lib\argparse.pyR scCsgS(N((R"((s..\python\lib\argparse.pyRs(Rt __module__t__doc__R(R R(((s..\python\lib\argparse.pyRos cCs8t||ddkr+t|||nt||S(N(tgetattrtNonetsetattr(t namespaceR&R'((s..\python\lib\argparse.pyt _ensure_valuescBseZdZddddZdZdZdefdYZdZ d Z d Z d Z dd Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(sFormatter for generating usage messages and argument help strings. Only the name of this class is considered a public API. All the methods provided by the class are considered an implementation detail. iicCs|dkrPyttjd}Wnttfk rBd}nX|d8}n||_||_||_||_ d|_ d|_ d|_ |j |d|_|j|_tjd|_tjd|_dS(NtCOLUMNSiPiis\s+s\n\n\n+(R/tintt_ostenvirontKeyErrort ValueErrort_progt_indent_incrementt_max_help_positiont_widtht_current_indentt_levelt_action_max_lengtht_Sectiont _root_sectiont_current_sectiont_retcompilet_whitespace_matchert_long_break_matcher(R"tprogtindent_incrementtmax_help_positiontwidth((s..\python\lib\argparse.pyt__init__s"           cCs%|j|j7_|jd7_dS(Ni(R=R:R>(R"((s..\python\lib\argparse.pyt_indentscCs@|j|j8_|jdks-td|jd8_dS(NisIndent decreased below 0.i(R=R:tAssertionErrorR>(R"((s..\python\lib\argparse.pyt_dedentsR@cBseZddZdZRS(cCs(||_||_||_g|_dS(N(t formattertparenttheadingR+(R"RORPRQ((s..\python\lib\argparse.pyRKs   cCs|jdk r|jjn|jj}x!|jD]\}}||q5W|g|jD]\}}||^q\}|jdk r|jjn|sdS|jtk r|jdk r|jj }d|d|jf}nd}|d||dgS(Nts%*s%s: s ( RPR/RORLt _join_partsR+RNRQRR=(R"R!tfunctargst item_helptcurrent_indentRQ((s..\python\lib\argparse.pyt format_helps . N(RR,R/RKRX(((s..\python\lib\argparse.pyR@s cCs|jjj||fdS(N(RBR+R(R"RTRU((s..\python\lib\argparse.pyt _add_itemscCsB|j|j||j|}|j|jg||_dS(N(RLR@RBRYRX(R"RQtsection((s..\python\lib\argparse.pyt start_sections cCs|jj|_|jdS(N(RBRPRN(R"((s..\python\lib\argparse.pyt end_sectionscCs5|tk r1|dk r1|j|j|gndS(N(RR/RYt _format_text(R"ttext((s..\python\lib\argparse.pytadd_textscCs8|tk r4||||f}|j|j|ndS(N(RRYt _format_usage(R"tusagetactionstgroupstprefixRU((s..\python\lib\argparse.pyt add_usages cCs|jtk r|j}||g}x*|j|D]}|j||q7Wtg|D]}t|^q^}||j}t|j||_|j |j |gndS(N( thelpRt_format_action_invocationt_iter_indented_subactionsRtmaxtlenR=R?RYt_format_action(R"tactiontget_invocationt invocationst subactiontstinvocation_lengtht action_length((s..\python\lib\argparse.pyt add_arguments %   cCs"x|D]}|j|qWdS(N(Rs(R"RbRl((s..\python\lib\argparse.pyt add_argumentss cCsD|jj}|r@|jjd|}|jdd}n|S(Ns s (RARXRFtsubtstrip(R"Rf((s..\python\lib\argparse.pyRXs cCs2djg|D]}|r |tk r |^q S(NRR(R!R(R"t part_stringstpart((s..\python\lib\argparse.pyRSs  cs|dkrtd}n|dk r@|td|j}n|dkrl| rldtd|j}n|dkr dtd|j}g}g}x4|D],}|jr|j|q|j|qW|j} | |||} djg|| gD]} | r| ^q}|j|j t |t |kr d} | ||} | ||}t j | | }t j | |}dj|| kst dj||kst dfd}t |t |dkr{dt |t |d}|rM||g|||}|j|||q|ro||g|||}q|g}n}dt |}||}|||}t |dkrg}|j||||j|||n|g|}d j|}q nd ||fS( Nsusage: RGs%(prog)st s\(.*?\)+|\[.*?\]+|\S+csg}g}|dk r+t|d}nt|d}x||D]t}|dt|kr|j|dj|g}t|d}n|j||t|d7}qBW|r|j|dj|n|dk r|dt||dgt|jD] }d^q}d j |||j}|S( Ns%sis[%s]s [%s [%s ...]]is %s [%s ...]s...s%s ...Ry( RRR/R RR R R RR!(R"RlRt get_metavarRRtformats((s..\python\lib\argparse.pyR:s  "cCstt|d|j}x.t|D] }||tkr(||=q(q(Wx;t|D]-}t||drY||j|| 0; if you have nothing to store, actions such as store true or store const may be more appropriates nargs must be %r to supply constRRRRRRRRRfR(R8R/R tsuperRRK( R"RRRRRRRRRfR((s..\python\lib\argparse.pyRK$s cCst||j|dS(N(R0R(R"RR1RR((s..\python\lib\argparse.pyRAsN(RR,R/RRKR(((s..\python\lib\argparse.pyR"s t_StoreConstActioncBs)eZdedddZddZRS(cCsAtt|jd|d|ddd|d|d|d|dS( NRRRiRRRRf(RRRK(R"RRRRRRfR((s..\python\lib\argparse.pyRKGscCst||j|jdS(N(R0RR(R"RR1RR((s..\python\lib\argparse.pyRXsN(RR,R/RRKR(((s..\python\lib\argparse.pyREs  t_StoreTrueActioncBseZeeddZRS(c Cs;tt|jd|d|dtd|d|d|dS(NRRRRRRf(RRRKR(R"RRRRRf((s..\python\lib\argparse.pyRK^sN(RR,RR/RK(((s..\python\lib\argparse.pyR\st_StoreFalseActioncBseZeeddZRS(c Cs;tt|jd|d|dtd|d|d|dS(NRRRRRRf(RRRKR(R"RRRRRf((s..\python\lib\argparse.pyRKosN(RR,RRR/RK(((s..\python\lib\argparse.pyRmst _AppendActionc Bs5eZdddddedddZddZRS(c Cs|dkrtdn|dk rF|tkrFtdtntt|jd|d|d|d|d|d |d |d |d | d | dS(Nisnargs for append actions must be > 0; if arg strings are not supplying the value to append, the append const action may be more appropriates nargs must be %r to supply constRRRRRRRRRfR(R8R/R RRRK( R"RRRRRRRRRfR((s..\python\lib\argparse.pyRKs cCsBtjt||jg}|j|t||j|dS(N(t_copytcopyR2RRR0(R"RR1RRR+((s..\python\lib\argparse.pyRs N(RR,R/RRKR(((s..\python\lib\argparse.pyR~s t_AppendConstActioncBs)eZdedddZddZRS(cCsGtt|jd|d|ddd|d|d|d|d |dS( NRRRiRRRRfR(RRRK(R"RRRRRRfR((s..\python\lib\argparse.pyRKscCsEtjt||jg}|j|jt||j|dS(N(RRR2RRRR0(R"RR1RRR+((s..\python\lib\argparse.pyRsN(RR,R/RRKR(((s..\python\lib\argparse.pyRs  t _CountActioncBs&eZdeddZddZRS(c Cs;tt|jd|d|ddd|d|d|dS(NRRRiRRRf(RRRK(R"RRRRRf((s..\python\lib\argparse.pyRKscCs0t||jdd}t||j|dS(Nii(R2RR0(R"RR1RRt new_count((s..\python\lib\argparse.pyRsN(RR,R/RRKR(((s..\python\lib\argparse.pyRs t _HelpActioncBs&eZeeddZddZRS(c Cs5tt|jd|d|d|ddd|dS(NRRRRiRf(RRRK(R"RRRRf((s..\python\lib\argparse.pyRKs cCs|j|jdS(N(t print_helptexit(R"RR1RR((s..\python\lib\argparse.pyRs N(RR,RR/RKR(((s..\python\lib\argparse.pyRs t_VersionActioncBs)eZdeeddZddZRS(s&show program's version number and exitc Cs>tt|jd|d|d|ddd|||_dS(NRRRRiRf(RRRKtversion(R"RRRRRf((s..\python\lib\argparse.pyRKscCsT|j}|dkr!|j}n|j}|j||jd|jdS(NR(RR/t_get_formatterR_RRX(R"RR1RRRRO((s..\python\lib\argparse.pyRs      N(RR,R/RRKR(((s..\python\lib\argparse.pyRs  t_SubParsersActioncBsNeZdefdYZedddZdZdZddZ RS(t_ChoicesPseudoActioncBseZdZRS(cCs2ttj|}|jdgd|d|dS(NRRRf(RRRRK(R"R&Rftsup((s..\python\lib\argparse.pyRKs(RR,RK(((s..\python\lib\argparse.pyRsc Csb||_||_i|_g|_tt|jd|d|dtd|jd|d|dS(NRRRRRfR(t _prog_prefixt _parser_classt_name_parser_mapt_choices_actionsRRRKR (R"RRGt parser_classRRfR((s..\python\lib\argparse.pyRKs     cKs|jddkr/d|j|f|dcBs)eZdddZdZdZRS(cKs|j}|d|j|d|j|d|jtt|j}|d||||_g|_|j |_ |j |_ |j |_ |j |_ |j |_ dS(NR&R%R$R#(RR&R%R$RR>RKRGRR'R*R+R.R0(R"RCRGR#RR4t super_init((s..\python\lib\argparse.pyRKs       cCs,tt|j|}|jj||S(N(RR>R:RR(R"Rl((s..\python\lib\argparse.pyR:scCs*tt|j||jj|dS(N(RR>RFRRE(R"Rl((s..\python\lib\argparse.pyRFsN(RR,R/RKR:RF(((s..\python\lib\argparse.pyR>s R@cBs&eZedZdZdZRS(cCs,tt|j|||_||_dS(N(RR@RKRt _container(R"RCR((s..\python\lib\argparse.pyRKs cCsJ|jr$td}t|n|jj|}|jj||S(Ns-mutually exclusive arguments must be optional(RRR8RYR:RR(R"RlR((s..\python\lib\argparse.pyR:s   cCs$|jj||jj|dS(N(RYRFRRE(R"Rl((s..\python\lib\argparse.pyRFs(RR,RRKR:RF(((s..\python\lib\argparse.pyR@s  c BsUeZdZd!d!d!d!d!gedd!d!ded ZdZdZdZ dZ dZ d!d!d Z d!d!d Z d Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZdZd!dZd!dZd!dZd!dZ dd!dZ!d Z"RS("saObject for parsing command line strings into Python objects. Keyword Arguments: - prog -- The name of the program (default: sys.argv[0]) - usage -- A usage message (default: auto-generated from arguments) - description -- A description of what the program does - epilog -- Text following the argument descriptions - parents -- Parsers whose arguments should be copied into this one - formatter_class -- HelpFormatter class for printing help messages - prefix_chars -- Characters that prefix optional arguments - fromfile_prefix_chars -- Characters that prefix files containing additional arguments - argument_default -- The default value for all arguments - conflict_handler -- String indicating how to handle conflicts - add_help -- Add a -h/-help option Rterrorc  Cs|dk r+ddl} | jdtntt|j}|d|d|d| d| |dkrtjj t j d}n||_ ||_ ||_||_||_| |_| |_|j}|td|_|td |_d|_d }|jd d|d |kr-d n|d}|jrw|j|d |dddddtdtdn|jr|j|d|dddddtd|jdtdnxL|D]D}|j|y |j}Wntk rqX|jj|qWdS(NisThe "version" argument to ArgumentParser is deprecated. Please use "add_argument(..., action='version', version="N", ...)" insteadR#R%R$R&ispositional argumentssoptional argumentscSs|S(N((R((s..\python\lib\argparse.pytidentity+sRRthiRfRlRsshow this help message and exittvRs&show program's version number and exit(R/twarningstwarntDeprecationWarningRRRKR5tpathtbasenameRtargvRGRatepilogRtformatter_classtfromfile_prefix_charstadd_helpR?Rt _positionalst _optionalst _subparsersR(RsRRKR.RR4(R"RGRaR#RdRtparentsReR%RfR$R&RgR^t superinitt add_groupR[tdefault_prefixRPtdefaults((s..\python\lib\argparse.pyRKsX                        cCsAdddddddg}g|D]}|t||f^q"S(NRGRaR#RReR&Rg(R.(R"RR&((s..\python\lib\argparse.pyR Ks c KsG|jdk r%|jtdn|jdt|d|ksSd|krt|jdd}t|jdd}|j|||_n |j|_|j ddkr|j }|j }|j }|j |j||d|jj|dt||js|jtk r|j}t |jt r|j ||}nt ||j|qqq>q>Wx:|j D]/}t||st |||j |qqWy[|j||\}}t|trQ|jt|tt|tn||fSWn4tk rtjd}|jt|nXdS(Ni(R/RRcRR*RRRRRt basestringt _get_valueR0R.t_parse_known_argsRRR.tdelattrRtexc_infoRZR(R"RUR1RlRRterr((s..\python\lib\argparse.pyRs0      csjdk r!j  nixrjD]g}|j}xUt|jD]D\}}j|g}|j|| |j||dqPWq1Wig}t } xt| D]\}} | dkr|j dx_| D]} |j dqWqj | } | dkr+d} n| |x{|jD]}|krWPqWqWWg|jD]!}|jtk r{t|^q{}td}j|dj |q>q>WfS(Nis--RtAtORRcsj|j||}||jk rj|xWj|gD]@}|krNtd}t|}t|||qNqNWn|tk r|||ndS(Nsnot allowed with argument %s(Rt _get_valuesRRRRRR(Rltargument_stringsRtargument_valuestconflict_actionRt action_name(tseen_non_default_actionsR"R1taction_conflictst seen_actions(s..\python\lib\argparse.pyt take_actions      cs|}|\}}}j}g}xtr|dkrVj||dS|dk ry||d}j}|dkr|d|kr|j|g|f|d} | |d}|dpd} j} || kr| |}| }qvtd} t|| |q|dkrW|d} |g}|j|||fPqtd} t|| |q+|d}|}|||}||} || !}|j|||fPq+W|stx'|D]\}}}|||qW| S(NiR|isignored explicit argument %r( t_match_argumentRR/RR%R+RRRM(t start_indext option_tupleRlRt explicit_argtmatch_argumentt action_tuplest arg_countR;tchartnew_explicit_argt optionals_mapRtstopRURtselected_patterns(targ_strings_patternRR"toption_string_indicestextrasR$(s..\python\lib\argparse.pytconsume_optionalsP                     csj}|}||}xEt|D]4\}}|||!}||7}||q2Wt|(|S(N(t_match_arguments_partialtzipRj(Rt match_partialtselected_patternt arg_countsRlRRU(R"RRRR$(s..\python\lib\argparse.pytconsume_positionalsHs   iistoo few argumentssargument %s is requireds#one of the arguments %s is requiredRy(RfR/t_read_args_from_filesR-RRRRtiterRt_parse_optionalR!RRqRiRRZRR*RRRfR(R"R$R1RJRRt mutex_actiont conflictstarg_string_pattern_partstarg_strings_itert arg_stringRtpatternRRRtmax_option_string_indexRtnext_option_string_indextpositionals_end_indextstringst stop_indexRlR&RRR(( RRRR"R1RRRRRR$s..\python\lib\argparse.pyRxs          J              !   ! !cCsg}x|D]}|d|jkr6|j|q yt|d}zjg}xA|jjD]-}x$|j|D]}|j|q{WqeW|j|}|j|Wd|jXWq t k rt j d}|j t |q Xq W|S(Nii(RfRRtreadRtconvert_arg_line_to_argsRRRtIOErrorRRzRZR(R"R$tnew_arg_stringsRt args_filetarg_lineR%R{((s..\python\lib\argparse.pyRs$  cCs|gS(N((R"R((s..\python\lib\argparse.pyRscCs|j|}tj||}|dkritdd6tdt6tdt6}td|j}|j|j|}t ||nt |j dS(Nsexpected one argumentsexpected at most one argumentsexpected at least one argumentsexpected %s argument(s)i( t_get_nargs_patternRCRDR/RR R RRRRjR(R"RlRt nargs_patternRDt nargs_errorsRR((s..\python\lib\argparse.pyRs   c Csg}xtt|ddD]}|| }djg|D]}|j|^q<}tj||}|dk r|jg|jD]} t| ^qPqqW|S(NiiRR( RRjR!RRCRDR/RRc( R"RbRRRt actions_sliceRlRRDR((s..\python\lib\argparse.pyRs  " ,c Cs|s dS|d|jkr!dS||jkrJ|j|}||dfSt|dkr`dSd|kr|jdd\}}||jkr|j|}|||fSn|j|}t|dkr"djg|D]\}}}|^q}||f}|jtd|nt|dkrA|\}|S|j j |rc|j scdSnd|krsdSd|dfS(Niit=s, s#ambiguous option: %s could match %sRy( R/R%R+Rjtsplitt_get_option_tuplesR!RZRR/RDR0( R"RRlRRt option_tuplestoptionsRR((s..\python\lib\argparse.pyRs:     "    c Csg}|j}|d|kr|d|krd|krV|jdd\}}n |}d}x0|jD]A}|j|rl|j|}|||f}|j|qlqlWn|d|kr~|d|kr~|}d}|d }|d} x|jD]y}||kr<|j|}||| f}|j|q|j|r|j|}|||f}|j|qqWn|jtd||S(NiiRisunexpected option string: %s(R%RR/R+t startswithRRZR( R"RRR;t option_prefixRRlRtshort_option_prefixtshort_explicit_arg((s..\python\lib\argparse.pyRs8          cCs|j}|dkrd}n|tkr3d}nk|tkrHd}nV|tkr]d}nA|tkrrd}n,|tkrd}nddjd |}|jr|j dd }|j d d }n|S( Ns(-*A-*)s(-*A?-*)s (-*[A-]*)s (-*A[A-]*)s([-AO]*)s (-*A[-AO]*)s(-*%s-*)s-*R|RRR( RR/R RR R R R!RRN(R"RlRR((s..\python\lib\argparse.pyRJs$              c Cs|jttgkr=g|D]}|dkr|^q}n| r|jtkr|jrh|j}n |j}t|tr|j ||}|j ||qnq| r|jt kr|j r|jdk r|j}n|}|j ||nt |dkrQ|jdtgkrQ|\}|j ||}|j ||n|jtkrg|D]}|j ||^qg}n|jtkrg|D]}|j ||^q}|j ||dnFg|D]}|j ||^q}x|D]}|j ||qW|S(Ns--ii(RR R R RRRRRvRwt _check_valueRR/Rj(R"RlR$RpR'RR]((s..\python\lib\argparse.pyR~vs8(     ' (%% cCs |jd|j|j}t|sItd}t|||ny||}Wntk rt|jdt|j}tt j d}t||nZt t fk rt|jdt|j}td}t||||fnX|S(NRs%r is not callableRisinvalid %s value: %r( R3RRRRRR.RRRRzRLR8(R"RlRR=RRR&((s..\python\lib\argparse.pyRws    cCse|jdk ra||jkra|djtt|jf}td|}t||ndS(Ns, s#invalid choice: %r (choose from %s)(RR/R!tmapRRR(R"RlR'RR((s..\python\lib\argparse.pyRs!cCs2|j}|j|j|j|j|jS(N(RReRaR*R-RX(R"RO((s..\python\lib\argparse.pyt format_usages  cCs|j}|j|j|j|j|j|jxK|jD]@}|j|j |j|j|j |j |j qBW|j|j |jS(N(RReRaR*R-R_R#R,R[RGRtRR\RdRX(R"ROt action_group((s..\python\lib\argparse.pyRXs  cCsBddl}|jdt|j}|j|j|jS(NiskThe format_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(R^R_R`RR_RRX(R"R^RO((s..\python\lib\argparse.pytformat_versions  cCs|jd|jS(NRG(ReRG(R"((s..\python\lib\argparse.pyRscCs2|dkrtj}n|j|j|dS(N(R/RRt_print_messageR(R"tfile((s..\python\lib\argparse.pyt print_usages  cCs2|dkrtj}n|j|j|dS(N(R/RRRRX(R"R((s..\python\lib\argparse.pyRs  cCs6ddl}|jdt|j|j|dS(NisjThe print_version method is deprecated -- the "version" argument to ArgumentParser is no longer supported.(R^R_R`RR(R"RR^((s..\python\lib\argparse.pyt print_version s  cCs2|r.|dkrtj}n|j|ndS(N(R/Rtstderrtwrite(R"RR((s..\python\lib\argparse.pyR s  icCs-|r|j|tjntj|dS(N(RRRR(R"tstatusR((s..\python\lib\argparse.pyR scCs7|jtj|jdtd|j|fdS(serror(message: string) Prints a usage message incorporating the message to stderr and exits. If you override this in a subclass, it should not return -- it should either exit or raise an exception. is%s: error: %s N(RRRRRRG(R"R((s..\python\lib\argparse.pyRZ s N(#RR,R-R/RRRKR RsR:RtRqRuRRxRRRRRRRR~RwRRRXRRRRRRRRZ(((s..\python\lib\argparse.pyRsR B     #     9 , , 1        (3R-t __version__t__all__RRtosR5treRCtsysRttextwrapRRRRRR RR R R RRRR2RRRRRt ExceptionRRR RRRRRRRRRRRRRR>R@R(((s..\python\lib\argparse.pyt>sv            [#%M+*!