+
    i c                   s   R t . RCOt^ RIt^ RIt^ RIt^ RIHt	H
t
 RtRtRtRtRtRtRt ! R R]4      tR t ! R R]4      t ! R R]4      t ! R R	]4      t ! R R]4      t ! R R
]4      tR t ! R R]4      t ! R  R]4      t ! R! R]4      t ! R" R]4      t ! R# R$]4      t  ! R% R&]4      t! ! R' R(]!4      t" ! R) R*]!4      t# ! R+ R,]4      t$ ! R- R.]4      t% ! R/ R0]4      t& ! R1 R2]4      t' ! R3 R4]4      t( ! R5 R6]4      t) ! R7 R8]$4      t* ! R9 R]4      t+ ! R: R]4      t, ! R; R<]4      t- ! R= R>]-4      t. ! R? R@].4      t/RDRA lt0 ! RB R]]-4      t1R# )Ez1.1ArgumentParserArgumentErrorArgumentTypeErrorBooleanOptionalActionFileTypeHelpFormatterArgumentDefaultsHelpFormatterRawDescriptionHelpFormatterRawTextHelpFormatterMetavarTypeHelpFormatter	NamespaceActionN)gettextngettextz==SUPPRESS==Z?Z*Z+zA......Z_unrecognized_argsc                   s2   a  ] tR t^mt o R tR tR tRtV tR# )_AttributeHolderc                s   \        V 4      P                  p. p/ pV P                  4        F  pVP                  \	        V4      4       K  	  V P                  4        F9  w  rVVP                  4       '       d   VP                  V: R V: 24       K5  WcV&   K;  	  V'       d"   VP                  R\	        V4      ,          4       V: RRP                  V4      : R2# )=z**%s(, ))type__name__	_get_argsappendrepr_get_kwargsZisidentifierjoin)selfZ	type_namearg_stringsZ	star_argsargnamevalues   &      !/usr/lib64/python3.14/argparse.py__repr__Z_AttributeHolder.__repr__v   s    J''		>>#CtCy) $++-KD  """"dE#:;"'$	 .
 vY78$dii&<==    c                sH    \        V P                  P                  4       4      # N)list__dict__itemsr      &r    r   Z_AttributeHolder._get_kwargs   s    DMM'')**r"   c                s    . # r#    r'   r(   r    r   Z_AttributeHolder._get_args   s    	r"   r)   N)	r   
__module____qualname____firstlineno__r!   r   r   __static_attributes____classdictcell____classdict__   @r    r   r   m   s     >+ r"   r   c                 sp    V f   . # \        V 4      \        J d
   V R,          # ^ R IpVP                  V 4      # )NNNN)r   r$   copy)r&   r3      & r    _copy_itemsr5      s5    }	 E{dQx99Ur"   c                   s   a  ] tR t^t o R!R ltR tR tR t ! R R]4      t	R t
R	 tR
 tR tR"R ltR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"V t#R# )#r   Nc                s   Vf(   ^ R I pVP                  4       P                  pV^,          pV P                  V4       Wn        W n        \        V\        V^,
          V^,          4      4      V n        W@n	        ^ V n
        ^ V n        ^ V n        V P                  V R 4      V n        V P                  V n        \         P"                  ! R\         P$                  4      V n        \         P"                  ! R4      V n        R # )Nz\s+z\n\n\n+)shutilZget_terminal_sizeZcolumns
_set_color_prog_indent_incrementminmax_max_help_position_width_current_indent_level_action_max_length_Section_root_section_current_section_recompileZASCII_whitespace_matcher_long_break_matcher)r   progZindent_incrementZmax_help_positionwidthcolorr6   s   &&&&&& r    __init__ZHelpFormatter.__init__   s     =,,.66EQJE
!1"%&7&)%"*6F6J&K#M "#!]]46 $ 2 2#&;;vsyy#A #&;;z#: r"   c                s    ^ RI HpHpHp V'       d.   V! 4       '       d!   V! RR7      P                  V n        W0n        R# V! RR7      P                  V n        R V n        R# )    )can_colorizedecolor	get_themeT)Zforce_color)Zforce_no_colorc                     V # r#   r)   )textr(   r    <lambda>Z*HelpFormatter._set_color.<locals>.<lambda>   s    r"   N)Z	_colorizerM   rN   rO   Zargparse_theme_decolor)r   rJ   rM   rN   rO      &&   r    r7   ZHelpFormatter._set_color   sA    >>\^^#5>>DK#M#48AADK-DMr"   c                s~    V ;P                   V P                  ,          un         V ;P                  ^,          un        R#    Nr>   r9   r?   r'   r(   r    _indentZHelpFormatter._indent   s'     6 66qr"   c                s~    V ;P                   V P                  ,          un         V ;P                  ^,          un        R# rV   rX   r'   r(   r    _dedentZHelpFormatter._dedent   s'     6 66qr"   c                   s0   a  ] tR t^t o RR ltR tRtV tR# )HelpFormatter._SectionNc                s8    Wn         W n        W0n        . V n        R # r#   )	formatterparentheadingr&   )r   r\   r]   r^      &&&&r    rK   ZHelpFormatter._Section.__init__   s    &N K"LDJr"   c           
     s   V P                   e   V P                  P                  4        V P                  P                  pT! V P                   UUu. uF  w  r#V! V!  NK  	  upp4      pV P                   e   V P                  P                  4        V'       g   R# V P                  \        Jd   V P                  ez   V P                  P                  p\        R4      \        V P                  R7      ,          pV P                  P                  pRV,           VP                   V VP                   R2pMRpV! RWR.4      # u uppi )N z%(heading)s:)r^    
)r]   r\   rY   _join_partsr&   rZ   r^   SUPPRESSr>   _dictrS   reset)	r   r   funcargsZ	item_helpZcurrent_indentZheading_texttr^   s	   &        r    format_helpZ"HelpFormatter._Section.format_help   s
   {{&&&(>>--DDJJGJjddDkJGHI{{&&&(  ||8+0H!%!?!? 043MMNN))^+,yyk,y< 
  w4899+ Hs   E
)r\   r^   r&   r]   r#   )r   r*   r+   r,   rK   rk   r-   r.   r/   r1   r    rA   r[      s     		: 	:r"   rA   c                sR    V P                   P                  P                  W34       R # r#   )rC   r&   r   )r   rh   ri      &&&r    	_add_itemZHelpFormatter._add_item   s    ##**D<8r"   c                s    V P                  4        V P                  W P                  V4      pV P                  VP                  . 4       W n        R # r#   )rY   rA   rC   rm   rk   )r   r^   Zsection   && r    start_sectionZHelpFormatter.start_section  s;    --&;&;WEw**B/ 'r"   c                s\    V P                   P                  V n         V P                  4        R # r#   )rC   r]   rZ   r'   r(   r    end_sectionZHelpFormatter.end_section  s     $ 5 5 < <r"   c                sd    V\         Jd&   Ve    V P                  V P                  V.4       R # R # R # r#   )rd   rm   _format_text)r   rQ      &&r    add_textZHelpFormatter.add_text  s-    xD$4NN4,,tf5 %5r"   c                s^    V\         Jd#   WW43pV P                  V P                  V4       R # R # r#   )rd   rm   _format_usage)r   usageactionsgroupsprefixri      &&&&& r    	add_usageZHelpFormatter.add_usage  s-     61DNN4--t4 !r"   c                s  a  VP                   \        Jd   V 3R  lp\        V! V4      4      S P                  ,           .pS P	                  V4       F4  pVP                  \        V! V4      4      S P                  ,           4       K6  	  \        V4      p\        S P                  V4      S n        S P                  S P                  V.4       R# R# )c                 sD   < SP                  SP                  V 4      4      # r#   )rT   _format_action_invocation)Zxr      &r    rR   Z,HelpFormatter.add_argument.<locals>.<lambda>  s    t}}T5S5STU5V'Wr"   N)
helprd   lenr>   _iter_indented_subactionsr   r;   r@   rm   _format_action)r   actionZget_invocationZinvocation_lengths	subactionZaction_length   f&    r    add_argumentZHelpFormatter.add_argument  s    ;;h& XN"%nV&<"=@T@T"T!U!;;FC	"))#nY.G*H4K_K_*_` D   23M&)$*A*A*7'9D# NN4..9 'r"   c                s:    V F  pV P                  V4       K  	  R # r#   )r   )r   rv   r   rn   r    add_argumentsZHelpFormatter.add_arguments)  s    Ff% r"   c                s    V P                   P                  4       pV'       d5   V P                  P                  R V4      pVP	                  R4      R,           pV# )

rb   )rB   rk   rG   substrip)r   r}   r4   r    rk   ZHelpFormatter.format_help1  sI    !!--/++//=D::d#d*Dr"   c                sz    R P                  V Uu. uF  pV'       g   K  V\        Jg   K  VNK  	  up4      # u upi )r`   )r   rd   )r   Zpart_stringspartrn   r    rc   ZHelpFormatter._join_parts8  sE    ww$0:$0D $($8 $0: ; 	; :s   
888c                s  a a S P                   pVf   \        R4      pVe`   VP                  VRVP                   S P                   VP
                   VP                   2/,          ,           VP
                  ,           pEM9Vf1   V'       g)   VP                   S P                   VP
                   2pEMVEf   R\        S P                  R7      ,          pS P                  W#4      w  rxRP                  \        R V.VO4      4      pS P                  S P                  ,
          o\        V4      \        S P                  V4      4      ,           S8  Ed7   VR V p	WxR  p
R
V V3R llp\        S P                  V4      4      p\        V4      V,           RS,          8:  dp   R\        V4      V,           ^,           ,          pV	'       d*   V! V.V	,           W4      pVP                  V! W4      4       MV
'       d   V! V.V
,           W4      pMpV.pMlR\        V4      ,          pW,           pV! W}4      p\        V4      ^8  d1   . pVP                  V! W4      4       VP                  V! W4      4       V.V,           pRP                  V4      pVP                  V4      pVP                   V VP
                   V 2pVP                    V VP
                   V R	2# )Nzusage: rH   z%(prog)srH   ra   c                 s  < . p. p\        V4      pVe   \        V4      ^,
          pM	V^,
          pV  F  p\        S	P                  V4      4      pV^,           V,           S
8  d;   V'       d3   VP                  VRP                  V4      ,           4       . pV^,
          pVP                  V4       Wh^,           ,          pK  	  V'       d(   VP                  VRP                  V4      ,           4       Ve   V^ ,          VR  V^ &   V# )Nra   )r~   rT   r   r   )partsindentrx   lineslineZindent_lengthZline_lenr   Zpart_lenr   
text_widths   &&&      r    	get_linesZ.HelpFormatter._format_usage.<locals>.get_linesa  s    ED$'KM)#&v;?#01#4 %#&t}}T':#;#a<(2Z?D!LL#((4.)@A#%D'4q'8HD) qL0 !& Vchhtn%<=)#(8MN#;a Lr"   g      ?rb   r   r#   )rS   re   Z
prog_extrarH   r8   rg   rf   _get_actions_usage_partsr   Zfilterr=   r>   r~   rT   extendZremoveprefixru   )r   ru   rv   rw   rx   rj   rH   r   	pos_startZ	opt_partsZ	pos_partsr   Zprog_lenr   r   r   s   f&&&&          @r    rt   ZHelpFormatter._format_usage=  s   KK>y\F affXdjj\!''1<<.IJKK ''  ]7vvhtzzl177)4E ]$** 55D#<<WMEHHVD4.%.9:E t';';;J6{Su!566C "*9-	!*-	! !. t}}T23v;)TJ->> CK($:Q$>?F  )4&9*<f MYy%AB" )4&9*<f M!% !3v;.F%1E%e4E5zA~ "Yy%ABYy%AB!FUNE 		%(&&t,EvvhtfQWWIeW5E ''6(177)E7$77r"   c                s    \        V4      ^8  # )   )r~   )r   stringrr   r    _is_long_optionZHelpFormatter._is_long_option  s    6{Qr"   c           	     s   V Uu. uF  q3P                   \        Jg   K  VNK  	  pp\        P                  V4      pV F"  pVP                   F  pW49   g   K  WTV&   K  	  K$  	  . pV F  pVP
                  '       d   K  VP                  V4      pV'       dr   VP                   Uu. uF3  pVP
                  '       g   K  VP                  VR 4      '       g   K1  VNK5  	  upV.,           pVP                  VP                  V34       K  VP                  R V.34       K  	  . p	V F  pVP
                  '       g   K  W49   g   K  VP                  V4      pV'       dr   V.VP                   Uu. uF3  pVP
                  '       g   K  VP                  VR 4      '       g   K1  VNK5  	  up,           pV	P                  VP                  V34       K  V	P                  R V.34       K  	  . p
V P                  pR p\        W,           4       EF5  w  pw  r\        V
4      pV\        V	4      8X  d   Tp\        V4      ^8  pV EF~  pVP
                  '       gr   V P                  V4      pV P                  VV4      pV'       d"   V^ ,          R8X  d   VR,          R8X  d   V^R pVP                  V,           VP                  ,           pMVP
                  ^ ,          pV P!                  V4      '       d   VP"                  pMVP$                  pVP&                  ^ 8X  d$   VP)                  4       pV V VP                   2pMDV P+                  V4      pV P                  VV4      pV V RVP,                   V VP                   2pVP                  '       g   V'       g   V'       g
   RV,          pV
P                  V4       EK  	  V'       g   EK  V'       d   RMRW,          ,           W&   \/        V\        V
4      ^,
          4       F  pW;;,          R,          uu&   K  	  T
R;;,          V'       d   RMR,          uu&   EK8  	  Vf   \        V
4      pW3# u upi u upi u upi )	NZ[Z]ra   [%s]r   z |r   )r}   rd   rf   Zfromkeys_group_actionsoption_stringspopr   requiredrS   	enumerater~   #_get_default_metavar_for_positional_format_argsZsummary_actionrg   r   Zsummary_long_optionZsummary_short_optionnargsformat_usage!_get_default_metavar_for_optionalZsummary_labelrange)r   rv   rw   r   Zaction_groupsgrouppositionalsZaction2group_actionsZ	optionalsr   rj   r   ir   startZin_groupdefaultr   option_stringZoption_colorargs_strings   &&&                   r    r   Z&HelpFormatter._get_actions_usage_parts  s    )0Of;;h3N66Og.E..*,1&) / 
 F(((%))&1/4/C/C%/CG"11  (,,Wd;  /C%  	%!M
  &&'FG&&vh'78  	F$$$)@%))&1%+H/4/C/C0/CG"11  (,,Wd;  /C0 %M
 $$ennm%DE$$dVH%56  KK	$-i.E$F A JEC	N"!	5zA~H,,,"FFvNG,,VW=D7c>d2h#o#'":D++d2QWW<D %+$9$9!$<M++M::'('<'<'('='= ||q(%224".vaggY?
 #'"H"H"P&*&7&7&H+n]O1 /}QWWIG  #OOOx8%} T"Q  T x'/SELHuc%j1n5AH$H 6b	HS#5	g %Gj E
IA P%0s.   QQ&Q?QQ-QQ Qc                s    R V9   d   V\        V P                  R7      ,          p\        V P                  V P                  ,
          ^4      pRV P                  ,          pV P                  WV4      R,           # )z%(prog)r   ra   r   )rf   r8   r;   r=   r>   
_fill_text)r   rQ   r   r      &&  r    rq   ZHelpFormatter._format_text  s^    $DJJ//Dt';';;R@
t+++t86AAr"   c                sB   \        V P                  ^,           V P                  4      p\        V P                  V,
          ^4      pW P
                  ,
          ^,
          pV P                  V4      pV P                  V4      pVP                  '       g   V P
                  RV3pRV,          pMX\        V4      V8:  d/   TpV P
                  RWF3pRV,          pVP                  Wh4      p^ p	MV P
                  RV3pRV,          pTp	V.p
VP                  '       d   VP                  P                  4       '       dy   V P                  V4      pV'       d_   V P                  W4      pV
P                  RX	RV^ ,          3,          4       VR,           F  pV
P                  RVRV3,          4       K   	  M(VP                  R4      '       g   V
P                  R4       V P!                  V4       F#  pV
P                  V P#                  V4      4       K%  	  V P%                  V
4      # )r   r`   z%*s%s
z	%*s%-*s  rW   NNrb   )r:   r@   r<   r;   r=   r>   r{   rT   r}   r~   replacer   _expand_help_split_linesr   Zendswithr   r   rc   )r   r   Zhelp_positionZ
help_widthZaction_widthZaction_headerZaction_header_no_colortupZaction_header_colorZindent_firstr   Z	help_textZ
help_linesr   r   s   &&             r    r   ZHelpFormatter._format_action  s   D33a7 335}4b9
$';';;a?66v>!%}!= {{{&&M9C%OM '(L8"/&&LPC'#-M)11&M L &&M9C%OM(L  ;;;6;;,,..))&1I!..yE
Y,JqM)JJK&rNNDLLmR-F!FG + ''--LL 77?ILL,,Y78 @ &&r"   c                sD  a a S P                   oVP                  '       gZ   S P                  V4      pSP                  R P	                  S P                  W4      ! ^4      4      ,           SP                  ,           # V V3R lpVP                  ^ 8X  d$   V! VP                  4      pRP	                  V4      # S P                  V4      pV! VP                  4      pSP                   S P                  W4       SP                   2pRP	                  V4      R ,           V,           # )ra   c                 s   < . pV  Fr  pSP                  V4      '       d.   VP                  SP                   V SP                   24       KG  VP                  SP                   V SP                   24       Kt  	  V# r#   )r   r   Zlong_optionrg   Zshort_option)stringsr   sr   rj   s   &  r    color_option_stringsZEHelpFormatter._format_action_invocation.<locals>.color_option_stringsO  sm     A++A..qc!''%CD'7s177)%DE	 !
 r"   r   )rS   r   r   r   r   _metavar_formatterrg   r   r   Zlabelr   )r   r   r   r   r   r   rj   s   f&    @r    r{   Z'HelpFormatter._format_action_invocationB  s    KK$$$>>vFG((4226CAFGH'' ||q !5f6K6K!Lyy00
 @@H!5f6K6K!Lwwi 1 1& BCAGG9M  yy036DDr"   c                s   a VP                   e   VP                   oMAVP                  e2   RRP                  \        \        VP                  4      4      ,          oMVoV3R lpV# )N{%s},c                 sH   < \        S\        4      '       d   S# S3V ,          # r#   )
isinstancetuple)Z
tuple_sizeresultr|   r    formatZ0HelpFormatter._metavar_formatter.<locals>.formatp  s"    &%((zJ..r"   )metavarchoicesr   mapstr)r   r   default_metavarr   r   s   &&& @r    r   Z HelpFormatter._metavar_formatterh  sO    >>%^^F^^'chhs3'?@@F$F	/
 r"   c                s   V P                  W4      pVP                  f   RV! ^4      ,          pV# VP                  \        8X  d   RV! ^4      ,          pV# VP                  \        8X  d0   V! ^4      p\	        V4      ^8X  d   RV,          pV# RV,          p V# VP                  \
        8X  d   RV! ^4      ,          pV# VP                  \        8X  d   RpV# VP                  \        8X  d   RV! ^4      ,          pV# VP                  \        8X  d   RpV#  \        VP                  4       Uu. uF  pRNK  	  ppR
P                  T4      T! TP                  4      ,          pT# u upi   \         d    \        R	4      R hi ; i)Nz%sr   z[%s [%s ...]]z[%s ...]z%s [%s ...]r   z%s ...r`   zinvalid nargs valuera   )r   r   OPTIONALZERO_OR_MOREr~   ONE_OR_MORE	REMAINDERPARSERrd   r   	TypeError
ValueErrorr   )r   r   r   Zget_metavarr   r   re   Zformats   &&&     r    r   ZHelpFormatter._format_argsw  s   --fF<<KN*F. - \\X%k!n,F* ) \\\)!!nG7|q (72"  $g-  \\[("[^3F  \\Y&F  \\V#A.F  \\X%F B).v||)<=)<A4)<= XXg&V\\)BBF	 > B !67TABs   E- 1E(<E- (E- -Fc                s   V P                  V4      pR V9  d   V# \        \        V4      V P                  R7      p\	        V4       F;  pW4,          pV\
        J d   W4 K  \        VR4      '       g   K-  VP                  W4&   K=  	  VP                  R4      e*   RP                  \        \        VR,          4      4      VR&   W#,          # )Z%r   r   r   r   )_get_help_stringrf   varsr8   r$   rd   hasattrr   getr   r   r   )r   r   Zhelp_stringZparamsr   r      &&    r    r   ZHelpFormatter._expand_help  s    ++F3k!d6l4LDLE L
++$~~ ! ::i , $		#c6)3D*E FF9##r"   c              #  s   "    VP                   pV P                  4        V! 4        R j  xL
  V P                  4        R #  L  \         d     R # i ; i5ir#   )_get_subactionsrY   rZ   AttributeError)r   r   Zget_subactionsrn   r    r   Z'HelpFormatter._iter_indented_subactions  sM     	#33N LLN%'''LLN (	  		s1   AA AAAAAAAc                s    V P                   P                  R V4      P                  4       p^ RIpVP	                  W4      # )ra   N)rF   r   r   textwrapZwrap)r   rQ   rI   r      &&& r    r   ZHelpFormatter._split_lines  s7    ''++C6<<> 	}}T))r"   c                s    V P                   P                  R V4      P                  4       p^ RIpVP	                  WVVR7      # )ra   N)Zinitial_indentZsubsequent_indent)rF   r   r   r   Zfill)r   rQ   rI   r   r      &&&& r    r   ZHelpFormatter._fill_text  sD    ''++C6<<>}}T,2/5  7 	7r"   c                    VP                   # r#   )r}   r   r   rr   r    r   ZHelpFormatter._get_help_string      {{r"   c                s6    VP                   P                  4       # r#   )destZupperr   rr   r    r   Z/HelpFormatter._get_default_metavar_for_optional  s    {{  ""r"   c                r   r#   )r   r   rr   r    r   Z1HelpFormatter._get_default_metavar_for_positional  r   r"   )r@   r>   rC   rT   r9   r?   rG   r<   r8   rB   rS   rF   r=   )r   i   NTr#   )$r   r*   r+   r,   rK   r7   rY   rZ   objectrA   rm   ro   rp   rs   rz   r   r   rk   rc   rt   r   r   rq   r   r{   r   r   r   r   r   r   r   r   r   r-   r.   r/   r1   r    r   r      s     ;>.
":6 ":H9(65
:"&;
X8th TB5'n$EL8$*7# r"   c                   &   a  ] tR tRt o R tRtV tR# )r   i  c                sZ   a R P                  V3R lVP                  RR7       4       4      # )r`   c              3   s6   <"   T F  pSV,           x  K  	  R # 5ir#   r)   ).0r   r      & r    	<genexpr>Z9RawDescriptionHelpFormatter._fill_text.<locals>.<genexpr>  s     P1Ov}}1Os   T)Zkeepends)r   
splitlines)r   rQ   rI   r   s   &&&fr    r   Z&RawDescriptionHelpFormatter._fill_text  s#    wwP$1OPPPr"   r)   N)r   r*   r+   r,   r   r-   r.   r/   r1   r    r   r     s     Q Qr"   c                   r   )r   i  c                s"    VP                  4       # r#   )r   )r   rQ   rI   rl   r    r   Z!RawTextHelpFormatter._split_lines  s      r"   r)   N)r   r*   r+   r,   r   r-   r.   r/   r1   r    r   r     s     ! !r"   c                   r   )r   i  c                s   VP                   pVf   RpRV9  dh   VP                  \        JdT   VP                  '       gB   \        \
        3pVP                  '       g   VP                  V9   d   V\        R4      ,          pV# )Nr`   z
%(default)z (default: %(default)s))	r}   r   rd   r   r   r   r   r   re   )r   r   r}   Zdefaulting_nargsr   r    r   Z.ArgumentDefaultsHelpFormatter._get_help_string  sl    {{<D $h.OOO (,7$$$8H(H344r"   r)   N)r   r*   r+   r,   r   r-   r.   r/   r1   r    r   r     s      r"   c                   ,   a  ] tR tRt o R tR tRtV tR# )r	   i  c                .    VP                   P                  # r#   r   r   r   rr   r    r   Z:MetavarTypeHelpFormatter._get_default_metavar_for_optional      {{###r"   c                r   r#   r   r   rr   r    r   Z<MetavarTypeHelpFormatter._get_default_metavar_for_positional  r   r"   r)   N)r   r*   r+   r,   r   r   r-   r.   r/   r1   r    r	   r	     s     $$ $r"   c                 sf   V f   R # V P                   '       d   RP                  V P                   4      # V P                  R \        39  d   V P                  p\	        V\
        4      '       g   V# V P                  \        8X  d   \        V4      ^8X  d
   RV,          # V P                  \        8X  d
   RV,          # RP                  V4      # V P                  R \        39  d   V P                  # V P                  '       d1   RRP                  \        \        V P                  4      4      ,          # R # )NZ/z%s[, %s]r   r   r   )r   r   r   rd   r   r   r   r   r~   r   r   r   r   r   )argumentr   r4   r    _get_action_namer     s    		 	 	 xx//00			$!1	1""'5))N>>\)c'la.?''^^{*''99W%%	tX.	.}}				S(*:*:!;<<<r"   c                   r   )r   i  c                s2    \        V4      V n        W n        R # r#   )r   argument_namemessage)r   r   r   rl   r    rK   ZArgumentError.__init__#  s    -h7r"   c                s    V P                   f   RpM\        R4      pV\        V P                  V P                   R7      ,          # )Nz%(message)sz'argument %(argument_name)s: %(message)s)r   r   )r   re   rf   r   )r   r   r4   r    __str__ZArgumentError.__str__'  sA    %"F@AFT\\+/+=+=? ? 	?r"   )r   r   N)r   r*   r+   r,   rK   r   r-   r.   r/   r1   r    r   r     s     ? ?r"   c                   s    ] tR tRtRtR# )r   i0  r)   N)r   r*   r+   r,   r-   r)   r"   r    r   r   0  s    r"   c                   s@   a  ] tR tRt o RR ltR tR tR	R ltRtV t	R# )
r   i9  Nc                s    Wn         W n        W0n        W@n        WPn        W`n        Wpn        Wn        Wn        Wn	        Wn
        R # r#   r   r   r   constr   r   r   r   r}   r   
deprecated)r   r   r   r   r   r   r   r   r   r}   r   r   s   &&&&&&&&&&&&r    rK   ZAction.__init__l  s<     -	

	 	$r"   c                L    . ROpV Uu. uF  q"\        W4      3NK  	  up# u upi )r   r   getattrr   namesr      &  r    r   ZAction._get_kwargs  s+    
 9>>wt*+>>>   !c                s(    V P                   ^ ,          # )rL   )r   r'   r(   r    r   ZAction.format_usage  s    ""1%%r"   c                    \        R 4      h)z.__call__() not defined)ZNotImplementedErrorr   parser	namespacevaluesr      &&&&&r    __call__ZAction.__call__  s    !";<<r"   )r   r   r   r   r   r}   r   r   r   r   r   	NNNNNFNNFr#   )
r   r*   r+   r,   rK   r   r   r   r-   r.   r/   r1   r    r   r   9  s     f%0? &= =r"   c                   sF   a a ] tR tRt oRV 3R lltRR ltR tRtVtV ;t	# )r   i  c           
     s.  < . pV Fu  pVP                  V4       VP                  R 4      '       g   K-  VP                  R4      '       d   \        RV: R24      hRVR,          ,           pVP                  V4       Kw  	  \        S	V `  VV^ VVVVR7       R# )----no-zinvalid option name z for BooleanOptionalActionr   NNr   r   r   r   r   r}   r   N)r   
startswithr   superrK   )
r   r   r   r   r   r}   r   Z_option_stringsr   	__class__s
   &&&&&&&  r    rK   ZBooleanOptionalAction.__init__  s     +M""=1''-- ++G44$';M;L MA &B C C '-*; ;&&}5 , 	*! 	 	#r"   c                s~    W@P                   9   d-   \        W P                  VP                  R 4      '       * 4       R# R# )r   N)r   setattrr   r   r   r   r    r   ZBooleanOptionalAction.__call__  s/    ///Iyym.F.Fw.O*OP 0r"   c                s8    R P                  V P                  4      # )z | )r   r   r'   r(   r    r   Z"BooleanOptionalAction.format_usage  s    zz$--..r"   r)   NFNFr#   )
r   r*   r+   r,   rK   r   r   r-   r.   __classcell__r   r0      @@r    r   r     s     #:Q/ /r"   c                   @   a a ] tR tRt oRV 3R lltRR ltRtVtV ;t# )_StoreActioni  c                   < V^ 8X  d   \        R4      hVe"   V\        8w  d   \        R\        ,          4      h\        \        V `  VVVVVVVVV	V
VR7       R# )rL   znargs for store actions must be != 0; if you have nothing to store, actions such as store true or store const may be more appropriateN nargs must be %r to supply constr   )r   r   r   r  rK   r   r   r   r   r   r   r   r   r   r}   r   r   r      &&&&&&&&&&&&r    rK   Z_StoreAction.__init__  sv     A: K L L (!2?(JKKlD*)! 	+ 	#r"   c                s2    \        W P                  V4       R # r#   )r   r   r   r   r    r   Z_StoreAction.__call__  s    	99f-r"   r)   r   r#   	r   r*   r+   r,   rK   r   r-   r.   r  r  r  r    r  r    s     #>. .r"   r  c                   r  )_StoreConstActioni  c	                s>   < \         \        V `  VV^ VVVVVR7       R# )rL   )r   r   r   r   r   r   r}   r   N)r   r  rK   
r   r   r   r   r   r   r}   r   r   r   
   &&&&&&&&&r    rK   Z_StoreConstAction.__init__  s2     	/)! 	0 	#r"   c                sF    \        W P                  V P                  4       R # r#   )r   r   r   r   r   r    r   Z_StoreConstAction.__call__  s    	99djj1r"   r)   NNFNNFr#   r  r  r  r    r  r    s     #&2 2r"   r  c                   6   a a ] tR tRt oRV 3R lltRtVtV ;t# )_StoreTrueActioni  c           
     s<   < \         \        V `  VVR VVVVR7       R# )T)r   r   r   r   r   r}   r   N)r   r  rK   r   r   r   r   r   r}   r   r      &&&&&&&r    rK   Z_StoreTrueAction.__init__  s/     	.)! 	/ 	r"   r)   )FFNFr   r*   r+   r,   rK   r-   r.   r  r  r  r    r  r    s      r"   r  c                   r  )_StoreFalseActioni  c           
     s<   < \         \        V `  VVR VVVVR7       R# )F)r   r   r   r   r   r}   r   N)r   r  rK   r  r  r    rK   Z_StoreFalseAction.__init__  s/     	/)! 	0 	#r"   r)   )TFNFr  r  r  r    r  r    s     # #r"   r  c                   r  )_AppendActioni%  c                r  )rL   znargs for append actions must be != 0; if arg strings are not supplying the value to append, the append const action may be more appropriateNr  r   )r   r   r   r  rK   r	  r
  r    rK   Z_AppendAction.__init__'  sv     A: O P P (!2?(JKKmT+)! 	, 	#r"   c                    \        W P                  R 4      p\        V4      pVP                  V4       \	        W P                  V4       R # r#   )r   r   r5   r   r   r   r   r   r   r   r&   ry   r    r   Z_AppendAction.__call__F  6    	99d3E"V	99e,r"   r)   r   r#   r  r  r  r    r  r  %  s     #>- -r"   r  c                   r  )_AppendConstActioniM  c	                s@   < \         \        V `  VV^ VVVVVVR7	       R# )rL   )	r   r   r   r   r   r   r}   r   r   N)r   r  rK   r  r  r    rK   Z_AppendConstAction.__init__O  s5     	 $0)! 	1 		#r"   c                s    \        W P                  R 4      p\        V4      pVP                  V P                  4       \        W P                  V4       R # r#   )r   r   r5   r   r   r   r  ry   r    r   Z_AppendConstAction.__call__c  s:    	99d3E"TZZ 	99e,r"   r)   r  r#   r  r  r  r    r  r  M  s     #(- -r"   r  c                   r  )_CountActionij  c           
     s<   < \         \        V `  VV^ VVVVR7       R# )rL   r   N)r   r  rK   r  r  r    rK   Z_CountAction.__init__l  s.     	lD*)! 	+ 	#r"   c                sx    \        W P                  R 4      pVf   ^ p\        W P                  V^,           4       R # r#   )r   r   r   )r   r   r   r   r   country   r    r   Z_CountAction.__call__|  s.    	99d3=E	99eai0r"   r)   r  r#   r  r  r  r    r  r  j  s     # 1 1r"   r  c                   sH   a a ] tR tRt o]]RR3V 3R lltRR ltRtVtV ;t	# )_HelpActioni  NFc           	     s:   < \         \        V `  VVV^ VVR7       R# )rL   )r   r   r   r   r}   r   N)r   r  rK   )r   r   r   r   r}   r   r   s   &&&&&&r    rK   Z_HelpAction.__init__  s+     	k4))! 	* 	#r"   c                sF    VP                  4        VP                  4        R # r#   )
print_helpexitr   r   r    r   Z_HelpAction.__call__  s    r"   r)   r#   
r   r*   r+   r,   rd   rK   r   r-   r.   r  r  r  r    r  r    s"      !!# r"   r  c                   sJ   a a ] tR tRt oR]]RR3V 3R lltRR ltRtVtV ;t	# )_VersionActioni  NFc                sb   < Vf   \        R4      p\        \        V `  VVV^ VR7       W n        R # )Nz&show program's version number and exit)r   r   r   r   r}   )re   r   r!  rK   version)r   r   r"  r   r   r}   r   r   r  r    rK   Z_VersionAction.__init__  s?     <=>Dnd,) 	- 	 r"   c                s    V P                   pVf   VP                   pVP                  4       pVP                  V4       VP                  VP	                  4       \
        P                  4       VP                  4        R # r#   )r"  _get_formatterrs   _print_messagerk   _sysstdoutr  )r   r   r   r   r   r"  r\   s   &&&&&  r    r   Z_VersionAction.__call__  s[    ,,?nnG))+	7#i335t{{Cr"   )r"  r#   r   r  r  r    r!  r!    s%      !!" r"   r!  c                   sr   a a ] tR tRt o ! R R]4      t]RRR3V 3R lltRR/R ltR	 t	RR
 lt
RtVtV ;t# )_SubParsersActioni  c                   s2   a a ] tR tRt oV 3R ltRtVtV ;t# )&_SubParsersAction._ChoicesPseudoActioni  c                s   < T;rEV'       d    VR RP                  V4      ,          ,          p\        \        P                  V 4      pVP	                  . WSVR7       R# )z (%s)r   )r   r   r}   r   N)r   r   r'  _ChoicesPseudoActionrK   )r   r   aliasesr}   r   r   Zsupr   s   &&&&   r    rK   Z/_SubParsersAction._ChoicesPseudoAction.__init__  sQ    !!G7TYYw%777)>>ECLL!(  *r"   r)   r  r  r  r    r)  r(    s     	* 	*r"   r)  FNc           
     s   < W n         W0n        / V n        . V n        \	        4       V n        R V n        \        \        V `'  VV\        V P                  VVVR7       R# )T)r   r   r   r   r   r}   r   N)_prog_prefix_parser_class_name_parser_map_choices_actionsset_deprecated_colorr   r'  rK   r   )	r   r   rH   parser_classr   r   r}   r   r   s	   &&&&&&&&r    rK   Z_SubParsersAction.__init__  sb     !) " "5/))) 	0 	r"   r   c               s   VP                  R 4      f   V P                  : RV: 2VR &   VP                  R4      f   V P                  VR&   VP                  RR4      pWP                  9   d   \        RV 24      hV F!  pWPP                  9   g   K  \        RV 24      h	  RV9   d@   VP                  R4      pV P                  WV4      pV P                  P                  V4       MRpV P                  ! R/ VB pVe   VP                  V4       WP                  V&   V F  pWP                  V&   K  	  V'       d7   V P                  P                  V4       V P                  P                  V4       V# )	rH   Nra   rJ   r*  zconflicting subparser: zconflicting subparser alias: r}   r)   )r   r+  r1  r   r-  r   r)  r.  r   r,  _check_helpr0  addupdate)	r   r   r   kwargsr*  Zaliasr}   Zchoice_actionr   s	   &&$,     r    
add_parserZ_SubParsersAction.add_parser  sa   ::f%(,(9(94@F6N ::g&"kkF7O**Y+(((6tf=>>E--- #@!HII 
 V::f%D 55dTJM!!((7 M ##-f-$}-&,d# E+1!!%(    &##G,r"   c                s    V P                   # r#   )r.  r'   r(   r    r   Z!_SubParsersAction._get_subactions  s    $$$r"   c                s   V^ ,          pVR,          pV P                   \        Jd   \        W P                   V4        V P                  V,          pYPP                  9   d$   TP                  \        R4      RT/,          4       TP                  TR4      w  r\        T
4      P                  4        F  w  r\        Y+T4       K  	  T'       dI   \        T\        4      '       g   \        T\        . 4       \        T\        4      P!                  T4       R# R#   \         d>    RTRRP                  T P                  4      /p\        R4      T,          p	\        Y	4      hi ; i)rL   r   parser_namer   r   z5unknown parser %(parser_name)r (choices: %(choices)s)z'command '%(parser_name)s' is deprecatedN)r   rd   r   r-  KeyErrorr   re   r   r0  _warningparse_known_argsr   r&   r   _UNRECOGNIZED_ARGS_ATTRr   r   )r   r   r   r   r   r8  r   Z	subparserri   msgZsubnamespacekeyr   s   &&&&&        r    r   Z_SubParsersAction.__call__  s7   QiRj 99H$Iyy+6	+--k:I ***OOAGH*K89 : %.$>$>{D$Q!|,224JCIE* 5 9&=>>	#:B?I67>>{K +  	+!;tyy)>)>?ADKLtSC**		+s   D AE )r.  r1  r0  r-  r,  r+  r#   )r   r*   r+   r,   r   r)  rd   rK   r7  r   r   r-   r.   r  r  r  r    r'  r'    sB     *v * 2'U 'R%#L #Lr"   r'  c                   s*   a  ] tR tRt o RR ltRtV tR# )_ExtendActioni+  Nc                r  r#   )r   r   r5   r   r   r  ry   r    r   Z_ExtendAction.__call__,  r  r"   r)   r#   )r   r*   r+   r,   r   r-   r.   r/   r1   r    r?  r?  +  s     - -r"   r?  c                   s6   a  ] tR tRt o RR ltR tR tRtV tR# )r   i6  Nc                sn    ^ RI pVP                  R\        ^R7       Wn        W n        W0n        W@n        R# )rL   NzBFileType is deprecated. Simply open files after parsing arguments.)Zcategory
stacklevel)warningswarnZPendingDeprecationWarning_mode_bufsize	_encoding_errors)r   ZmodeZbufsizeencodingerrorsrA  ry   r    rK   ZFileType.__init__G  s5    P. 	 	

 
!r"   c                s  a  VR 8X  d   RS P                   9   d<   RS P                   9   d   \        P                  P                  # \        P                  # \        ;QJ d    V 3R lR 4       F  '       g   K   RM	  RM! V 3R lR 4       4      '       d<   RS P                   9   d   \        P
                  P                  # \        P
                  # \        R4      S P                   ,          p\        V4      h \        VS P                   S P                  S P                  S P                  4      #   \         d(   pRTR	T/p\        R
4      p\        YT,          4      hRp?ii ; i)-rZbc              3   s@   <"   T F  qSP                   9   x  K  	  R # 5ir#   )rC  )r   cr   r   r    r   Z$FileType.__call__.<locals>.<genexpr>X  s     4e$**_es   ZwaxTFzargument "-" with mode %rZfilenameerrorz$can't open '%(filename)s': %(error)sN)rC  r%  ZstdinZbufferZanyr&  re   r   openrD  rE  rF  OSErrorr   )r   r   r=  Zeri   r   r   r    r   ZFileType.__call__S  s    S=djj ,/4::,=tzz((M4::M4e44e444-0DJJ->t{{))ODKKO34tzzA o%	4

DMM4>>& & 	43D>?G#GN33	4s   86D/ /E!:"EE!c           
     sn   V P                   V P                  3pR V P                  3RV P                  3.pRP	                  V Uu. uF  q3R8w  g   K  \        V4      NK  	  upV UUu. uF  w  rCVf   K  V: RV: 2NK  	  upp,           4      p\        V 4      P                  : RV: R2# u upi u uppi )rG  rH  r   r   r   r   r   )rC  rD  rE  rF  r   r   r   r   )r   ri   r6  r   ZkwZargs_strs   &     r    r!   ZFileType.__repr__g  s    zz4==(t~~.4<<0HI994E4C"9id3i4EAG 2gb!$ 2S1 22 3  :..99 F2s   B,B,'B14B1)rD  rE  rF  rC  )rJ  r   NN)	r   r*   r+   r,   rK   r   r!   r-   r.   r/   r1   r    r   r   6  s     "
4(: :r"   c                   s2   a  ] tR tRt o R tR tR tRtV tR# )r
   is  c                s<    V F  p\        WW,          4       K  	  R # r#   )r   )r   r6  r      &, r    rK   ZNamespace.__init__z  s    DD- r"   c                sh    \        V\        4      '       g   \        # \        V 4      \        V4      8H  # r#   )r   r
   ZNotImplementedr   )r   Zotherrr   r    __eq__ZNamespace.__eq__~  s(    %++!!DzT%[((r"   c                s    WP                   9   # r#   )r%   )r   r>  rr   r    __contains__ZNamespace.__contains__  s    mm##r"   r)   N)	r   r*   r+   r,   rK   rP  rQ  r-   r.   r/   r1   r    r
   r
   s  s     .)
$ $r"   c                   s   a a ] tR tRt oV 3R ltR tRR ltR tR tR t	R t
R	 tR
 tR tR tR tR tRR ltR tR tR tR tR tRtVtV ;t# )_ActionsContaineri  c                s<  < \         \        V `  4        Wn        W0n        W n        W@n        / V n        V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R\        4       V P                  R R	\         4       V P                  R R
\"        4       V P                  R R\$        4       V P                  R R\&        4       V P)                  4        . V n        / V n        . V n        . V n        / V n        \4        P6                  ! R4      V n        . V n        R# )r   NZstoreZstore_constZ
store_trueZstore_falser   Zappend_constr  r}   r"  parsersr   z-\.?\d)r   rR  rK   descriptionargument_defaultprefix_charsconflict_handler_registriesregisterr  r  r  r  r  r  r  r  r!  r'  r?  _get_handler_actions_option_string_actions_action_groups_mutually_exclusive_groups	_defaultsrD   rE   _negative_number_matcher_has_negative_number_optionals)r   rT  rV  rU  rW  r   s   &&&&&r    rK   Z_ActionsContainer.__init__  sS   
 	/1& 0( 0  	hl3h6h/@Ah.>?h/@Ah-8h0BCh6h4h	>:h	+<=h-8 	 &(# !*,'  ),I(>% /1+r"   c                sF    V P                   P                  V/ 4      pW4V&   R # r#   )rX  
setdefault)r   registry_namer   r   Zregistryr   r    rY  Z_ActionsContainer.register  s!    ##..}bA r"   c                sF    V P                   V,          P                  W#4      # r#   )rX  r   )r   rc  r   r   r_   r    _registry_getZ_ActionsContainer._registry_get  s    .225BBr"   c                s    V P                   P                  V4       V P                   F-  pVP                  V9   g   K  WP                  ,          Vn        K/  	  R # r#   )r_  r5  r[  r   r   )r   r6  r   rO  r    set_defaultsZ_ActionsContainer.set_defaults  s>    f% mmF{{f$!'!4 $r"   c                s    V P                    F2  pVP                  V8X  g   K  VP                  f   K&  VP                  u # 	  V P                  P	                  VR 4      # r#   )r[  r   r   r_  r   )r   r   r   rn   r    get_defaultZ_ActionsContainer.get_default  sH    mmF{{d"v~~'A~~% $ ~~!!$--r"   c                s6   V P                   pV'       d&   \        V4      ^8X  dC   V^ ,          ^ ,          V9  d.   V'       d   RV9   d   \        R4      hV P                  ! V/ VB pMV P                  ! V/ VB pRV9  dN   VR,          pW@P
                  9   d   V P
                  V,          VR&   MV P                  e   V P                  VR&   VP                  R4      pV P                  V4      p\        V4      '       g   \        RV: 24      hV! R/ VB pVP                  '       g"   VP                  ^ 8X  d   \        RV: R24      hV P                  R	VP                  VP                  4      p\        V4      '       g   \        V: R
24      hV\        J d   \        V: R24      h\!        V R4      '       d$   V P#                  4       p	 V	P%                  VR4       V P'                  V4       V P)                  V4      #   \         d    \        R4      hi ; i)rW   r   zBdest supplied twice for positional argument, did you mean metavar?r   Nr   zunknown action zaction z& is not valid for positional argumentsr    is not callablez: is a FileType class object, instance of it must be passed_get_validation_formatterz,length of metavar tuple does not match nargsr)   )rV  r~   r   _get_positional_kwargs_get_optional_kwargsr_  rU  r   _pop_action_classcallabler   r   r   rd  r   r   r   rh  r   r3  _add_action)
r   ri   r6  charsr   action_nameZaction_classr   	type_funcr\   s
   &*,       r    r   Z_ActionsContainer.add_argument  s    !!s4yA~$q'!*E*A&( !9 : :00$A&AF ..??F F"&>D~~%$(NN4$8y!&&2$($9$9y! jj*--f5%%|.>?@@'' $$$):w{o5[\]] &&vv{{FKKH		""ym+;<== ym ,< = > > 4455668IQ&&vt4 	 ''  Q !OPPQs   H Hc                sZ    \        V .VO5/ VB pV P                  P                  V4       V# r#   )_ArgumentGroupr]  r   )r   ri   r6  r   s   &*, r    add_argument_groupZ$_ActionsContainer.add_argument_group  s/    t5d5f5""5)r"   c                sT    \        V 3/ VB pV P                  P                  V4       V# r#   )_MutuallyExclusiveGroupr^  r   )r   r6  r   rO  r    add_mutually_exclusive_groupZ._ActionsContainer.add_mutually_exclusive_group  s*    '77''..u5r"   c                sv   V P                  V4       V P                  P                  V4       Wn        VP                   F  pWP
                  V&   K  	  VP                   FU  pV P                  P                  V4      '       g   K&  V P                  '       d   K:  V P                  P                  R 4       KW  	  V# )T)	_check_conflictr[  r   	containerr   r\  r`  matchra  )r   r   r   rn   r    rm  Z_ActionsContainer._add_action#  s    V$ 	V$ $22M9?''6 3 $22M,,22=AA:::77>>tD 3 r"   c                s<    V P                   P                  V4       R # r#   )r[  remover   rr   r    _remove_actionZ _ActionsContainer._remove_action8  s    V$r"   c                s
   / pV P                    F=  pVP                  V9   d   R VP                  : 2p\        V4      hW2VP                  &   K?  	  / pVP                    Fy  pVP                  V9  d?   V P                  VP                  VP                  VP
                  R7      W#P                  &   VP                   F  pW#P                  ,          WV&   K  	  K{  	  VP                   Fe  pVP                  VJ d   T pMW#P                  P                  ,          pVP                  VP                  R7      pVP                   F  pWV&   K	  	  Kg  	  VP                   F#  pVP                  W`4      P                  V4       K%  	  R# )z,cannot merge actions - two groups are named )titlerT  rW  )r   N)r]  rz  r   rr  rT  rW  r   r^  
_containerrt  r   r[  r   rm  )	r   rv  Ztitle_group_mapr   r=  Z	group_mapr   Zcontmutex_groups	   &&       r    _add_container_actionsZ(_ActionsContainer._add_container_actions;  s`   ((E{{o- EU[[OT o%+0EKK( ) 	--E {{/1/3/F/F++ % 1 1%*%;%; 0G 0=,  ..$3KK$@	! / ." 99E9,&'7'7'='=>;; < )K  ..$/&! / :  ((FMM&'33F; )r"   c                s    R V9   d   Rp\        V4      hVP                  R4      pV^ 8X  d   \        R4      hV\        \        \
        \        39  d   RVR &   \        W!. R7      # )r   z1'required' is an invalid argument for positionalsr   z"nargs for positionals must be != 0Tr   r   )r   r   r   r   r   r   rd   rf   )r   r   r6  r=  r   s   &&,  r    ri  Z(_ActionsContainer._get_positional_kwargsi  sf    ECC.  

7#A:ABB<HEE!%F: Fb99r"   c                s*   . p. pV F  pV^ ,          V P                   9   g   \        RV: RV P                   : 24      hVP                  V4       \        V4      ^8  g   K[  V^,          V P                   9   g   Ku  VP                  V4       K  	  VP	                  RR4      pVfb   V'       d   V^ ,          pM	V^ ,          pVP                  V P                   4      pV'       g   RX: 2p\        V4      hVP                  RR4      p\        W&VR7      # )	rL   zinvalid option string z: must start with a character r   Nz#dest= is required for options like rI  re   r~  )	rV  r   r   r~   r   Zlstripr   r   rf   )	r   ri   r6  r   Zlong_option_stringsr   r   Zdest_option_stringr=  s	   &*,      r    rj  Z&_ActionsContainer._get_optional_kwargsz  s    !M #t'8'88 ,],= >3373D3D2GIJ J
 !!-0=!A%-*:d>O>O*O#**=9 " zz&$'<"%8%;"%3A%6"%,,T->->?D;M;LMn$<<S)D FnEEr"   c                sJ    VP                  R V4      pV P                  R W34      # )r   )r   rd  )r   r6  r   r   r   r    rk  Z#_ActionsContainer._pop_action_class  s%    Hg.!!(F;;r"   c                s    R V P                   ,          p \        W4      #   \         d    RT P                   : 2p\        T4      hi ; i)z_handle_conflict_%sz#invalid conflict_resolution value: )rW  r   r   r   )r   Zhandler_func_namer=  r   r    rZ  Z_ActionsContainer._get_handler  sO    1D4I4II	"433 	"78M8M7PQCS/!	"s	   
  'Ac                s    . pVP                    F:  pW0P                  9   g   K  V P                  V,          pVP                  W434       K<  	  V'       d   V P                  4       pV! W4       R # R # r#   )r   r\  r   rZ  )r   r   Zconfl_optionalsr   Zconfl_optionalrW  r   r    ru  Z!_ActionsContainer._check_conflict  sg     #22M ; ;;!%!<!<]!K&&'FG 3 #002V5 r"   c                s    \        R R\        V4      4      pRP                  V UUu. uF  w  rAVNK	  	  upp4      p\        XW5,          4      hu uppi )zconflicting option string: %szconflicting option strings: %sr   )r   r~   r   r   )r   r   conflicting_actionsr   r   Zconflict_string   &&&   r    _handle_conflict_errorZ(_ActionsContainer._handle_conflict_error  sb    :;235 ))(;%=(; *? &3(;%= > FG$=>>%=s   A
c                s    V Fk  w  r1VP                   P                  V4       V P                  P                  VR 4       VP                   '       d   KP  VP                  P                  V4       Km  	  R # r#   )r   rx  r\  r   rv  ry  )r   r   r  r   r   r    _handle_conflict_resolveZ*_ActionsContainer._handle_conflict_resolve  s_     &9!M !!((7''++M4@ (((  //7 &9r"   c                s    VP                   '       d9   \        V R 4      '       d%   V P                  4       p VP                  V4       R# R# R#   \        \
        \        3 d   p\	        R4      ThRp?ii ; i)rh  zbadly formed help stringN)r}   r   rh  r   r   r   r9  )r   r   r\   Zexcr   r    r3  Z_ActionsContainer._check_help  sk    ;;;74)DEE668IF&&v. F; 	84 F !;<#EFs   A A4#A//A4)r]  r[  r_  ra  r^  r`  r\  rX  rU  rW  rT  rV  r#   )r   r*   r+   r,   rK   rY  rd  re  rf  r   rr  rt  rm  ry  r}  ri  rj  rk  rZ  ru  r  r  r3  r-   r.   r  r  r  r    rR  rR    sq     01l!C5.9(v

*%,<\:"F@<"6?8F Fr"   rR  c                   sT   a a ] tR tRt oRV 3R lltV 3R ltV 3R ltR tRtVt	V ;t
# )rq  i  c                s  < R V9   d   ^ RI pRpVP                  V\        ^R7       VP                  pV! RVP                  4       V! R VP
                  4       V! RVP                  4       \        \        V `&  pV! RRV/VB  W n
        . V n        VP                  V n        VP                  V n        VP                  V n        VP                  V n        VP                   V n        VP"                  V n        R# )rV  NzjThe use of the undocumented 'prefix_chars' parameter in ArgumentParser.add_argument_group() is deprecated.)r@  rW  rU  rT  r)   )rA  rB  ZDeprecationWarningrb  rW  rV  rU  r   rq  rK   rz  r   rX  r[  r\  r_  ra  r^  )
r   rv  rz  rT  r6  rA  Zdepr_msgr5  Z
super_initr   s
   &&&&,    r    rK   Z_ArgumentGroup.__init__  s    V#E  MM($61ME ""!9#=#=>~y556!9#=#=>>49
5{5f5 
  %00!**&/&F&F#",,44 	+*3*N*N'r"   c                sd   < \         \        V `  V4      pV P                  P	                  V4       V# r#   )r   rq  rm  r   r   r   r   r      &&r    rm  Z_ArgumentGroup._add_action  s-    ~t8@""6*r"   c                sd   < \         \        V `  V4       V P                  P	                  V4       R # r#   )r   rq  ry  r   rx  r  r  r    ry  Z_ArgumentGroup._remove_action  s&    nd26:""6*r"   c                r   )z argument groups cannot be nestedr   )r   ri   r6  s   &*,r    rr  Z!_ArgumentGroup.add_argument_group  s    ;<<r"   )r[  r_  r   ra  r^  r\  rX  rz  NN)r   r*   r+   r,   rK   rm  ry  rr  r-   r.   r  r  r  r    rq  rq    s     O<
+= =r"   rq  c                   sH   a a ] tR tRt oRV 3R lltR tR tR tRtVt	V ;t
# )rs  i  c                sF   < \         \        V `  V4       W n        Wn        R # r#   )r   rs  rK   r   r{  )r   rv  r   r   s   &&&r    rK   Z _MutuallyExclusiveGroup.__init__  s    %t5i@ #r"   c                s    VP                   '       d   R p\        V4      hV P                  P                  V4      pV P                  P                  V4       V# )z-mutually exclusive arguments must be optional)r   r   r{  rm  r   r   )r   r   r=  rn   r    rm  Z#_MutuallyExclusiveGroup._add_action  sG    ???ACS/!,,V4""6*r"   c                sr    V P                   P                  V4       V P                  P                  V4       R # r#   )r{  ry  r   rx  r   rr   r    ry  Z&_MutuallyExclusiveGroup._remove_action  s(    &&v.""6*r"   c                r   )z*mutually exclusive groups cannot be nestedr  )r   r6  s   &,r    rt  Z4_MutuallyExclusiveGroup.add_mutually_exclusive_group  s    EFFr"   )r{  r   )F)r   r*   r+   r,   rK   rm  ry  rt  r-   r.   r  r  r  r    rs  rs    s      $
+G Gr"   rs  c                 s   V e   V # \         P                  ^ ,          p \         P                  R,          P                  pVf    \        P                  P                  V4      # \        P                  P                  \         P                  4      pVP                  R8w  d#   VP                  P                  R4      pV RV 2# V RV 2#   \        \
        3 d    R p Li ; i)NZ__main__z	.__main__z -m ra   )r%  argvZmodulesZ__spec__r9  r   _osZpathZbasenameZ
executabler   Zremovesuffix)rH   Zarg0ZmodspecZpyZmodnames   &    r    
_prog_namer    s    99Q<D,,z*33
 xx  &&			4??	+B||z!,,++K8T'##T4&> n%  s   !C
 
C C c                   s6  a a ] tR tRt oRRRR. ]RRRRRRR3RRRR/V 3R	 llltR
 tR tR tR t	R t
R*R ltR*R ltR tR tR tR tR tR tR tR tR tR*R ltR*R ltR tR tR tR tR  tR! tR" tR+R# ltR+R$ lt R+R% lt!R,R& lt"R' t#R( t$R)t%Vt&V ;t'# )-r    i-  NrI  rL  Tsuggest_on_errorFrJ   c          	     s  < \         \        V `
  pV! VVV	V
R 7       \        V4      V n        W n        W@n        W`n        Wn        Wn	        Wn
        Wn        Wn        Wn        RV n        V P                  pV! \!        R4      4      V n        V! \!        R4      4      V n        RV n        R pV P)                  RRV4       RV9   d   RMV^ ,          pV P                  '       d9   V P+                  VR,           V^,          R,           R\,        \!        R	4      R
7       V F\  p\/        V\        4      '       g   \1        R4      hV P3                  V4       VP4                  pV P4                  P7                  V4       K^  	  R# ))rT  rV  rU  rW  Nzpositional argumentsoptionsc                 rP   r#   r)   )r   r(   r    identityZ)ArgumentParser.__init__.<locals>.identityr  s    Mr"   r   rI  Zhr}   zshow this help message and exit)r   r   r}   z(parents must be a list of ArgumentParser)r   r    rK   r  rH   ru   epilogformatter_classfromfile_prefix_charsadd_helpallow_abbrevexit_on_errorr  rJ   _cached_formatterrr  re   _positionals
_optionals_subparsersrY  r   rd   r   r   r}  r_  r5  )r   rH   ru   rT  r  Zparentsr  rV  r  rU  rW  r  r  r  r  rJ   Z	superinitZ	add_groupr  Zdefault_prefixr]   Zdefaultsr   s   &&&&&&&&&&&&&&$$      r    rK   ZArgumentParser.__init__F  s[   $ .$8	k+#3#3	5
 t$	
.%:" (* 0
 "&++	%a(>&?@#AiL1	fdH- !$| 3a===s"N1$4V$;x89  ; Ffn55 JKK''/''HNN!!(+ r"   c                r   )rH   )rH   ru   rT  r  rW  r  r   r   r   r    r   ZArgumentParser._get_kwargs  s+    
 9>>wt*+>>>r   c                s   V P                   e   \        R4      hVP                  R\        V 4      4       RV9   g   RV9   dE   VP	                  R\        R4      4      pVP	                  RR 4      pV P                  W#4      V n         MV P                  V n         VP                  R4      f~   V P                  V P                  R7      pVP                  R4       V P                  4       pV P                  pVP                  R WVR	4       VP                  4       P!                  4       VR&   V P#                  VR
4      pV! RR. /VB pV P$                  Vn        V P)                  V4       V P                   P+                  V4       V# )Nz(cannot have multiple subparser argumentsr2  rz  rT  ZsubcommandsrH   r   Fr`   rS  r   r)   )r  r   rb  r   r   re   rr  r  r   r  rH   r7   _get_positional_actionsr^  rz   rk   r   rk  rJ   r1  r3  rm  )	r   r6  rz  rT  r\   r   rw   Zparsers_classr   s	   &,       r    add_subparsersZArgumentParser.add_subparsers  s[   'GHH 	.$t*5f 7JJw-(89E **]D9K#66uJD#00D ::f%,,$)),<I  '668K44Fk2>&224::<F6N ..vyA;b;F;

 $$V, r"   c                s    VP                   '       d   V P                  P                  V4       V# V P                  P                  V4       V# r#   )r   r  rm  r  r   rr   r    rm  ZArgumentParser._add_action  sB       OO''/  ))&1r"   c                sl    V P                    Uu. uF  pVP                  '       g   K  VNK  	  up# u upi r#   r[  r   r   r4   r    _get_optional_actionsZ$ArgumentParser._get_optional_actions  s6    "mm*+F(( +* 	* *   11c                sl    V P                    Uu. uF  pVP                  '       d   K  VNK  	  up# u upi r#   r  r   r4   r    r  Z&ArgumentParser._get_positional_actions  s6    "mm.+F,, +. 	. .r  c                    V P                  W4      w  rV'       dS   \        R 4      RP                  V4      ,          pV P                  '       d   V P	                  V4       V# \        RV4      hV# zunrecognized arguments: %sra   N)r;  re   r   r  rL  r   r   ri   r   r  r=     &&&  r    
parse_argsZArgumentParser.parse_args  sa    **4;
01CHHTNBC!!!

3  $D#..r"   c                s(    V P                  WR R7      # )F
intermixed)_parse_known_args2)r   ri   r   rl   r    r;  ZArgumentParser.parse_known_args  s    &&t5&IIr"   c                sV   Vf   \         P                  R,          pM\        V4      pVf   \        4       pV P                   Fl  pVP
                  \        Jg   K  \        W$P
                  4      '       d   K6  VP                  \        Jg   KL  \        W$P
                  VP                  4       Kn  	  V P                   F3  p\        W%4      '       d   K  \        W%V P                  V,          4       K5  	  V P                  '       d    V P                  WV4      w  r!MV P                  WV4      w  r!\        V\         4      '       d0   VP#                  \%        V\         4      4       \'        V\         4       W!3#   \         d%   pT P                  \        T4      4        R p?LrR p?ii ; i)Nr   )r%  r  r$   r
   r[  r   rd   r   r   r   r_  r  _parse_known_argsr   rL  r   r<  r   r   Zdelattr)r   ri   r   r  r   r   errs   &&&&   r    r  Z!ArgumentParser._parse_known_args2  s>   <99R=D :D !I mmF{{(*y++66~~X5	;;G	 $ NND9++	)=> #
 %"&"8"8*"U	4 #44TjQOI9566KK	+BCDI67 ! %

3s8$$%s   E9 9F(F##F(c           	     s
  a aaaaaa a!a"a#a$a%a& S P                   e   S P                  S4      o/ oS P                   Fm  pVP                  p\	        VP                  4       FE  w  rgSP                  V. 4      pVP                  VR V 4       VP                  WV^,           R  4       KG  	  Ko  	  / o!. p	\        S4      p
\	        V
4       Fi  w  rkVR8X  d.   V	P                  R4       V
 F  pV	P                  R4       K  	  K9  S P                  V4      pVf   RpMVS!V&   RpV	P                  V4       Kk  	  RP                  V	4      o\        4       o#\        4       o$\        4       o&RVVV#V$V 3R llo%VVVV V!V V%V&3R lpS P                  4       o"VVV"V V%V&3R lp. o. o ^ pS!'       d   \        S!4      pMRpVV8:  d~   TpVV8:  d   VS!9   d   MV^,          pK  V'       g   VV8w  d   V! V4      pVV8  d   TpKE  TpVS!9  d-   SVV pSP                  V4       S P                  SVV 4       TpV! V4      pK  V'       g   V! V4      pSP                  SVR  4       MSP                  SVR  4       S P                  SVR  4       RP                  S 4      o \        SS 4       UUu. uF  w  ppVR8w  g   K  VNK  	  uppoS P                  RR4      oV! ^ 4      p\	        S 4       F'  w  ppV'       g    MVR8w  g   K  V^,          pR SV&   K)  	  S Uu. uF  pVf   K	  VNK  	  upo. pS P                    F  pVS#9  g   K  VP"                  '       d   VP                  \%        V4      4       K:  VP&                  f   KJ  \)        VP&                  \*        4      '       g   Kl  \-        SVP.                  4      '       g   K  VP&                  \1        SVP.                  4      J g   K  \3        SVP.                  S P5                  VVP&                  4      4       K  	  V'       d,   \7        R \9        R	4      R
P                  V4      ,          4      hS P                   F  pVP"                  '       g   K  VP                   F  pVS$9   g   K   K2  	  VP                   Uu. uF$  pVP:                  \<        Jg   K  \%        V4      NK&  	  pp\9        R4      p\7        R VRP                  V4      ,          4      h	  SS3# u uppi u upi u upi )Nr   rI  AOr`   c                 s^  < S	P                  V 4       SP                  W4      pV P                  '       g	   V'       dZ   S
P                  V 4       SP                  V . 4       F2  pVS
9   g   K  \	        R 4      p\        V4      p\        WV,          4      h	  V\        Jd   V ! SSW24       R# R# )znot allowed with argument %sN)r4  _get_valuesr   r   re   r   r   rd   )r   Zargument_stringsr   Zargument_valuesZconflict_actionr=  ro  action_conflictsr   seen_actionsseen_non_default_actionsr   s   &&&    r    take_actionZ5ArgumentParser._parse_known_args.<locals>.take_action5  s    V$"..vHO $$$(8(,,V4'7';';FB'GO&*BB >?&6&G+F+4EFF	 (H h.tYG /r"   c                 s  < SV ,          p\        V4      ^8  dU   RP                  V UUUUu. uF  w  r#rEVNK
  	  upppp4      pRSV ,          RV/p\        R4      p\        RW,          4      hV^ ,          w  r#rESP                  p	. p
 Vf3   SP                  SV ,          4       SP                  R4       V ^,           # VEeX   V	! VR4      pSP                  pV^ 8X  d   V^,          V9  d   VR8w  d   V'       g   V^ ,          V9   d   \        R	4      p\        W(V,          4      hV
P                  V. V34       V^ ,          pW^ ,          ,           pSP                  pW>9   d@   W,          pVR
,          pV'       g   R;rEK  V^ ,          R8X  d   RpVR
,          pEK  RpEK  SP                  W,           4       SP                  R4       V ^,           pM}V^8X  d!   V ^,           pV.pV
P                  W'V34       MV\        R	4      p\        W(V,          4      hV ^,           pSVR pV	! VV4      pVV,           pSVV pV
P                  W'V34        V
 F\  w  r'pVP                  '       d<   VS9  d5   SP                  \        R4      RV/,          4       SP                  V4       S! W'V4       K^  	  V# u uppppi )rW   r   optionZmatchesz4ambiguous option: %(option)s could match %(matches)sNr  r  r`   zignored explicit argument %rr   r   z!option '%(option)s' is deprecated)r~   r   re   r   _match_argumentr   rV  r\  r   r:  r4  )start_indexoption_tuplesr   r   sepexplicit_argr  ri   r=  Zmatch_argumentZaction_tuples	arg_countrn  ZcharZoptionals_mapZstopr   Zselected_patternsr   arg_strings_patternextrasextras_patternoption_string_indicesr   r  warneds   &                 r    consume_optionalZ:ArgumentParser._parse_known_args.<locals>.consume_optionalI  s    2+>M=!A%))DQ%SDQ@s &3DQ%S T +k":IwONO#D#*557DQ7G4F3 "11NM >MM+k":;"))#.&?*  + .vs ;I
 !--E!Q)!,E9(B.,q/U":"#$B"CC"/l8J"KK%,,fb--HI,Q/(,A(>(,(C(C(9%2%AF+7+;L#/59 9l!-aC!7&)/;B/?&("MM$*=>*11#6#.?D! #a*Q ,~%,,fM-JK
   >?+F,4FGG (!OE(;EF(C% .v7H II 9,D&uT2D!((&)FG
 0=+m$$$f)DMM!$G"H#+]";#< =JJ}-F-8 0= Kw%Ss   J9c                 s  < S
P                   pSV R  pV! S	V4      p\        S	V4       EF  w  rESW V,            pVP                  \        8X  d!   SV ,          R8X  d   VP	                  R4       MDVP                  \
        8w  d0   SP                  RV W,           4      ^ 8  d   VP	                  R4       W,          p V'       dl   VP                  '       dZ   VP                  S9  dI   S
P                  \        R4      RVP                  /,          4       SP                  VP                  4       S! WF4       EK  	  S	\        V4      R  S	R&   V # )NrI  r   z*argument '%(argument_name)s' is deprecatedr   r2   )_match_arguments_partialzipr   r   rx  r   Zfindr   r   r:  re   r4  r~   )r  Zmatch_partialZselected_patternZ
arg_countsr   r  ri   r   r  r   r   r  r  s   &      r    consume_positionalsZ=ArgumentParser._parse_known_args.<locals>.consume_positionals  s+    99M2;<@&{4DEJ &)j%A!";i0GH<<6)*;73>D)\\Y.+00k1<1HJMNOD)(F---&++V2KMM!$P"Q#2FKK"@#A BJJv{{+F)! &B( )Z)9:KNr"   z(the following arguments are required: %sr   z#one of the arguments %s is requiredra   r#   r   )r  _read_args_from_filesr^  r   r   rb  r   iterr   _parse_optionalr   r/  r  r;   r  r   r[  r   r   r   r   r   r   r   r   r   
_get_valuer   re   r}   rd   )'r   r   r   r  r|  r   r   Zmutex_actionZ	conflictsZarg_string_pattern_partsZarg_strings_iter
arg_stringr  patternr  r  r  Zmax_option_string_indexZnext_option_string_indexZpositionals_end_indexr   Z
stop_indexr   rK  Zrequired_actionsr   r   r   r=  r  r  r  r  r  r   r  r  r  r  s'   fff&                         @@@@@@@@@@r    r  Z ArgumentParser._parse_known_args  s   %%144[AK ::K'66M#,[-G-G#H,77bI	  r!23  1uv!67 $I ; !##% ,&'78MA T!(//4"2J,33C8 #3 !% 4 4Z @ (!G/<)!,!G(//8# 9( !gg&>? u#&5 	H 	H(a	 a	J 224	 	B  &)*?&@#&(#44 (3$*.EE+/DD(A-(+1I"I(;K(H% );6"7K"7K "77%k2JKg&%%&9+F^&_`6 +;7K,[9J MM+jk23MM+kl34!!"5kl"CDWW^4N *-V^)DQ)DAS11)DQK"0"8"8b"A,Q/J!.11!8!OJ $F1I 2 "(9A1aa9F mmF\)???$++,<V,DE 2"6>>377	6;;77')V[[*II	6;; $ GI $  a(R&Syy!12'3 4 4 44E~~~#22F!99 3 ,1+?+?=+? &8 ; 6-f5+?  = ABC'cCHHUO.CDD 5 &  g R :D=s$   #S94S9S?S?T5Tc                sz   . pV F  pV'       d   V^ ,          V P                   9  d   VP                  V4       K6   \        VR,          \        P                  ! 4       \        P
                  ! 4       R7      ;_uu_ 4       p. pVP                  4       P                  4        F,  pV P                  V4       F  pVP                  V4       K  	  K.  	  V P                  V4      pVP                  V4       RRR4       K  	  V#   + '       g   i     EK  ; i  \         d   p\        R\        T4      4      hRp?ii ; i)rL   r   )rG  rH  N)r  r   rM  r%  ZgetfilesystemencodingZgetfilesystemencodeerrorsZreadr   convert_arg_line_to_argsr  r   rN  r   r   )r   r   Znew_arg_stringsr  Z	args_filearg_liner   r  s   &&      r    r  Z$ArgumentParser._read_args_from_files8	  s   %J Ad6P6P!P&&z28jn'+'A'A'C%)%C%C%EG GJS&((1(8(C(C(EH'+'D'DX'N + 2 23 7 (O )F '+&@&@&M'..{;G G &, G G G  8'c#h778s7   AD?A3D 2D DDDD: D55D:c                s    V.# r#   r)   )r   r  rr   r    r  Z'ArgumentParser.convert_arg_line_to_argsS	  s
    zr"   c                s   V P                  V4      p\        P                  ! W24      pVf~   R \        R4      \        \        R4      \
        \        R4      /pVP                  VP                  4      pVf)   \        RRVP                  4      VP                  ,          p\        W4      h\        VP                  ^4      4      # )Nzexpected one argumentzexpected at most one argumentzexpected at least one argumentzexpected %s argumentzexpected %s arguments)_get_nargs_patternrD   rw  re   r   r   r   r   r   r   r~   r   )r   r   r  nargs_patternrw  Znargs_errorsr=  s   &&&    r    r  ZArgumentParser._match_argumentV	  s    //7		-= =a/0!;<Q?@L
 ""6<<0C{56%||-/5||<  ,, 5;;q>""r"   c           	     s   \        \        V4      ^ R4       F  pVRV pRP                  V Uu. uF  pV P                  V4      NK  	  up4      p\        P
                  ! Wb4      pVf   KT  VP                  4        Uu. uF  p\        V4      NK  	  p	pVP                  4       \        V4      8  d8   W'P                  4       ,          R8X  d   V	'       d   V	R,          '       g   V	R K  V	u # 	  . # u upi u upi )rL   Nr`   r  r   )r   r~   r   r  rD   rw  rw   Zend)
r   rv   r  r   Zactions_slicer   r  rw  r   r   s
   &&&       r    r  Z'ArgumentParser._match_arguments_partiall	  s     s7|Q+A#BQKMgg-:<-:6  $66v>-:< =GIIg;E 49LLNCN&#f+NCIIK#&9"::+IIK8C? "2J , 	< Ds   C0
=C5c                s   V'       g   R # V^ ,          V P                   9   g   R # WP                  9   d   V P                  V,          pW!R R 3.# \        V4      ^8X  d   R # VP                  R4      w  r4pV'       d)   W0P                  9   d   V P                  V,          pW#WE3.# V P	                  V4      pV'       d   V# V P
                  P                  V4      '       d   V P                  '       g   R # RV9   d   R # R VR R 3.# )Nr   ra   )rV  r\  r~   	partition_get_option_tuplesr`  rw  ra  )r   r  r   r   r  r  r  s   &&     r    r  ZArgumentParser._parse_optional}	  s    !} 1 11 44400<Ft455 z?a ,6+?+?+D(L=$?$??00?FC>?? //
;  
 ((..z::666 * z4.//r"   c                sl   . pV P                   pV^ ,          V9   d   V^,          V9   d   V P                  '       dt   VP                  R4      w  rEpV'       g   R;rVV P                   FD  pVP	                  V4      '       g   K  V P                  V,          pWqWV3pVP                  V4       KF  	  V# V^ ,          V9   d   V^,          V9  d   VP                  R4      w  rEpV'       g   R;rVVR,          p	VR,          p
V P                   F  pW8X  d,   V P                  V,          pWqRV
3pVP                  V4       K4  V P                  '       g   KH  VP	                  V4      '       g   Ka  V P                  V,          pWqWV3pVP                  V4       K  	  V# \        R\        R4      V,          4      h)rL   r   N:Nr   Nr   r`   zunexpected option string: %s)rV  r  r  r\  r   r   r   re   )r   r   r   rn  Zoption_prefixr  r  r   r   Zshort_option_prefixZshort_explicit_args   &&         r    r  Z!ArgumentParser._get_option_tuples	  s    !!u$q)9U)B   3@3J3J33O0L)--C%)%@%@M$//>>!%!<!<]!K$SFc*	 &A> - 1&=+;5+H/</F/Fs/K,M%))"/"3!.r!2!%!<!< 7!88GF 5GGCMM#&&&&=+C+CM+R+R!88GF BCMM#& "=   a(F&G-&WXXr"   c                s   VP                   pVP                  pVf   V'       d   RpV# RpV# V\        8X  d   V'       d   RpV# RpV# V\        8X  d   V'       d   RpV# RpV# V\        8X  d   V'       d   RpV# RpV# V\
        8X  d   V'       d   R	pV# R
pV# V\        8X  d   V'       d   RpV# RpV# V\        8X  d   V'       d   RpV# RpV# V'       d
   RV,          MRV,          pV# )Nz([A])z(-*A-*)z(A?)z(-*A?-*)z(A*)z	(-*[A-]*)z(A+)z
(-*A[A-]*)z([AO]*)z(.*)z(A[AO]*)z(-*A[-AO]*)z()z(-*)z
([AO]{%d})z((?:-*A){%d}-*))r   r   r   r   r   r   r   rd   )r   r   r   r  r  rU   r    r  Z!ArgumentParser._get_nargs_pattern	  sL    && ='-GM> ? 4=M> 9 h&,FM6 7 3=M6 1 l"&,FM. / 3>M. ) k!&,FM& ' 3?M& ! i)/IM  6<M  f_*0JM  7DM  h$*DM  17M  5;L50@QTY@YM r"   c                r  r  )parse_known_intermixed_argsre   r   r  rL  r   r  r  r    parse_intermixed_argsZ$ArgumentParser.parse_intermixed_args
  sa    55dF
01CHHTNBC!!!

3  $D#..r"   c                s   V P                  4       pV Uu. uF"  pVP                  \        \        39   g   K   VNK$  	  ppV'       d$   \	        R V^ ,          P                  ,          4      hV P                  WRR7      # u upi )z3parse_intermixed_args: positional arg with nargs=%sTr  )r  r   r   r   r   r  )r   ri   r   r   r   Zar  r    r  Z*ArgumentParser.parse_known_intermixed_args
  s     224"- 5+ 33 V+ 5 --.qTZZ8 9 9 &&t4&HH5s
   A=A=c                s   V'       gt   VP                   \        8X  d_   VP                  '       d   VP                  pMVP                  p\        V\        4      '       d   V\        Jd   V P                  W4      pV# V'       gI   VP                   \        8X  d4   VP                  '       g"   VP                  e   VP                  pV# . p V# \        V4      ^8X  d@   VP                   R \        39   d)   Vw  pV P                  W4      pV P                  W4       V# VP                   \        8X  d"   V Uu. uF  qPP                  W4      NK  	  ppV# VP                   \        8X  d:   V Uu. uF  qPP                  W4      NK  	  ppV P                  W^ ,          4       V# VP                   \        8X  d	   \        pV# V Uu. uF  qPP                  W4      NK  	  ppV F  pV P                  W4       K  	  V# u upi u upi u upi r#   )r   r   r   r   r   r   r   rd   r  r   r~   _check_valuer   r   )r   r   r   r   r  Zvr  r    r  ZArgumentParser._get_values%
  s   v||x7$$$%%%%x*?6J C &,,,">'''~~)< 9 8 3 "v||h7G'G%KJOOF7Ef,, ' \\Y&9DEA__V/EE$  \\V#9DEA__V/EEfAh/  \\X%E  :EEA__V/EE!!&,  % F F Fs   4G7*G< Hc                s   V P                  R VP                  VP                  4      p\        V4      '       g   \        V: R24      h V! V4      pV#   \         d   p\        T4      p\        Y4      hRp?i\        \        3 dO    \        TP                  R\        TP                  4      4      pR TRT/p\        R4      p\        YT,          4      hi ; i)r   rg  Nr   r   z!invalid %(type)s value: %(value)r)rd  r   rl  r   r   r   r   r   r   r   re   )	r   r   r  rp  r   r  r=  r   ri   s	   &&&      r    r  ZArgumentParser._get_valueT
  s    &&vv{{FKKH		""ym+;<==	4z*F  ! 	-c(C,, :& 	46;;
D4EFDD':6D78Cd
33		4s   	A CA44CACc           	     s   VP                   pVf   R # \        V\        4      '       d   \        V4      pW#9  Ed	   R\        V4      RRP	                  \        \        VP                   4      4      /p\        R4      pV P                  '       d   \        V\        4      '       d   \        ;QJ d&    R VP                    4       F  '       d   K   RM	  RM! R VP                    4       4      '       d@   ^ R I	pVP                  W!P                   ^4      pV'       d   V^ ,          VR&   \        R	4      p\        WV,          4      hR # )
Nr   r   r   z3invalid choice: %(value)r (choose from %(choices)s)c              3   sB   "   T F  p\        V\        4      x  K  	  R # 5ir#   )r   r   )r   Zchoicer4   r    r   Z.ArgumentParser._check_value.<locals>.<genexpr>{
  s     L^6z&#..^s   FTZclosestzQinvalid choice: %(value)r, maybe you meant %(closest)r? (choose from %(choices)s))r   r   r   r  r   r   re   r  ZalldifflibZget_close_matchesr   )r   r   r   r   ri   r=  r  Zsuggestionsr   r    r  ZArgumentParser._check_valuel
  s    ..?gs##7mGSZtyyS&..)ABDDIJC$$$E3)?)?3LV^^L333LV^^LLL"")";";E>>ST"UK"*5a.Y !< =  d
33  r"   c                s    V P                  4       pVP                  V P                  V P                  V P                  4       VP                  4       # r#   )r#  rz   ru   r[  r^  rk   r   r\   r4   r    r   ZArgumentParser.format_usage
  sB    '')	DJJ ;;	=$$&&r"   c                s   V P                  4       pVP                  V P                  V P                  V P                  4       VP                  V P                  4       V P                   Fd  pVP                  VP                  4       VP                  VP                  4       VP                  VP                  4       VP                  4        Kf  	  VP                  V P                  4       VP                  4       # r#   )r#  rz   ru   r[  r^  rs   rT  r]  ro   rz  r   r   rp   r  rk   )r   r\   Zaction_groupr   r    rk   ZArgumentParser.format_help
  s    '')	 	DJJ ;;	= 	4++, !//L##L$6$67|778##L$?$?@!!#	 0 	4;;' $$&&r"   c                st    V P                  V P                  R 7      pVP                  V P                  4       V# )r   )r  rH   r7   rJ   r  r4   r    r#  ZArgumentParser._get_formatter
  s1    ((dii(8	TZZ(r"   c                s`    V P                   f   V P                  4       V n         V P                   # r#   )r  r#  r'   r(   r    rh  Z(ArgumentParser._get_validation_formatter
  s-     !!)%)%8%8%:D"%%%r"   c                n    Vf   \         P                  pV P                  V P                  4       V4       R # r#   )r%  r&  r$  r   r   filerr   r    print_usageZArgumentParser.print_usage
  s)    <;;DD--/6r"   c                r  r#   )r%  r&  r$  rk   r  rr   r    r  ZArgumentParser.print_help
  s)    <;;DD,,.5r"   c                s    V'       d/   T;'       g    \         P                  p VP                  V4       R # R #   \        \        3 d     R # i ; ir#   )r%  stderrZwriter   rN  )r   r   r  rl   r    r$  ZArgumentParser._print_message
  sE    &&4;;D

7#  #G, s   9 AAc                s    V'       d!   V P                  V\        P                  4       \        P                  ! V4       R # r#   )r$  r%  r  r  )r   Zstatusr   rl   r    r  ZArgumentParser.exit
  s%    5		&r"   c                s    V P                  \        P                  4       R V P                  RV/pV P	                  ^\        R4      V,          4       R# )rH   r   z%(prog)s: error: %(message)s
N)r  r%  r  rH   r  re   r   r   ri   rn   r    rL  ZArgumentParser.error
  sA     	%		9g6		!Q784?@r"   c                s    R V P                   RV/pV P                  \        R4      V,          \        P                  4       R# )rH   r   z%(prog)s: warning: %(message)s
N)rH   r$  re   r%  r  r  rn   r    r:  ZArgumentParser._warning
  s3    		9g6A@ADH$++Vr"   )r  r  r  r  r  r  rJ   r  r  r  r  rH   r  ru   r  r#   )rL   N)(r   r*   r+   r,   r   rK   r   r  rm  r  r  r  r;  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   rk   r#  rh  r  r  r$  r  rL  r:  r-   r.   r  r  r  r    r    r    -  s     4 !!.!'+"&")"#?, #(?,  !?, ?,J	?!F*
.J$Lq!f	6#,",0\*X(\I,-^04:''.
&7
6

AW Wr"   )r    r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   rd   r   r#   )2Z__version__Z__all__Zosr  ZrerD   Zsysr%  r   re   r   rd   r   r   r   r   r   r<  r   r   r5   r   r   r   r   r	   r   Z	Exceptionr   r   r   r   r  r  r  r  r  r  r  r  r!  r'  r?  r   r
   rR  rq  rs  r  r    r)   r"   r    <module>r     s  F ,    *		. v >	"dF dNQ- Q!6 !M 0$} $&.?I ?(		 	_= _=D#/F #/L".6 ".J2 22( &#) #&%-F %-P- -:16 12& *V :tL tLl-M -7:v 7:z$  $(KF KF\
*=& *=XGn G,,sW%'8 sWr"   