comparison mercurial/dispatch.py @ 7772:88887054d277

fancyopts: Parse options that occur after arguments. This changes the behavior of qguard in the case of setting negative guards, as -- will now always be required. Fixes issue1402. Doc fixes for mq by mpm.
author Augie Fackler <durin42@gmail.com>
date Tue, 10 Feb 2009 13:26:00 -0600
parents 30e95eafc1d0
children 14b703252f14
comparison
equal deleted inserted replaced
7771:09d0fe02988d 7772:88887054d277
182 # combine global options into local 182 # combine global options into local
183 for o in commands.globalopts: 183 for o in commands.globalopts:
184 c.append((o[0], o[1], options[o[1]], o[3])) 184 c.append((o[0], o[1], options[o[1]], o[3]))
185 185
186 try: 186 try:
187 args = fancyopts.fancyopts(args, c, cmdoptions) 187 args = fancyopts.fancyopts(args, c, cmdoptions, True)
188 except fancyopts.getopt.GetoptError, inst: 188 except fancyopts.getopt.GetoptError, inst:
189 raise error.ParseError(cmd, inst) 189 raise error.ParseError(cmd, inst)
190 190
191 # separate global options back out 191 # separate global options back out
192 for o in commands.globalopts: 192 for o in commands.globalopts: