# HG changeset patch # User Augie Fackler # Date 2016-08-18 15:32:02 # Node ID 61a4cdc98307f9fbd4d78385df447788260f38cb # Parent 8656dcac4ce9c0cd6ebee2dda079fcbaae86b1b1 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. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -556,7 +556,7 @@ def _parse(ui, args): c.append((o[0], o[1], options[o[1]], o[3])) try: - args = fancyopts.fancyopts(args, c, cmdoptions, True) + args = fancyopts.fancyopts(args, c, cmdoptions, gnu=True) except fancyopts.getopt.GetoptError as inst: raise error.CommandError(cmd, inst)