changeset 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 8656dcac4ce9
children 27c0792e834c
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sat Aug 20 23:05:18 2016 +0200
+++ b/mercurial/dispatch.py	Thu Aug 18 11:32:02 2016 -0400
@@ -556,7 +556,7 @@
         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)