comparison mercurial/dispatch.py @ 29822:61a4cdc98307

dispatch: explicitly pass fancyopts optional arg as a keyword I've been baffled by this a couple of times (mainly wondering if any callers of fancyopts.fancyopts that don't use gnu=True exist), so let's just specify this as a keyword argument to preserve sanity.
author Augie Fackler <augie@google.com>
date Thu, 18 Aug 2016 11:32:02 -0400
parents e3501546f7e4
children d5883fd055c6
comparison
equal deleted inserted replaced
29821:8656dcac4ce9 29822:61a4cdc98307
554 # combine global options into local 554 # combine global options into local
555 for o in commands.globalopts: 555 for o in commands.globalopts:
556 c.append((o[0], o[1], options[o[1]], o[3])) 556 c.append((o[0], o[1], options[o[1]], o[3]))
557 557
558 try: 558 try:
559 args = fancyopts.fancyopts(args, c, cmdoptions, True) 559 args = fancyopts.fancyopts(args, c, cmdoptions, gnu=True)
560 except fancyopts.getopt.GetoptError as inst: 560 except fancyopts.getopt.GetoptError as inst:
561 raise error.CommandError(cmd, inst) 561 raise error.CommandError(cmd, inst)
562 562
563 # separate global options back out 563 # separate global options back out
564 for o in commands.globalopts: 564 for o in commands.globalopts: