³ò ÷$•Jc@s%ddkZd„Zed„ZdS(iÿÿÿÿNc Cs g}d|jo+|idƒ}||d}|| }nti|||ƒ\}}g}x’|oŠ|idƒ}|oc|ddjoRt|ƒdjo?|id|ƒti|||ƒ\}} ||}| }qb|i|ƒqbW|i|ƒ||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( targstoptionst longoptionst extraargst stopindextoptst parseargstargttoptst newparseargs((s&/sys/lib/python/mercurial/fancyopts.pyt gnugetopt s"  +   cCspg}d}h}h}x|D]\}} } } | } | iddƒ} | |d|<|d| <| || s