diff -r af4387d8d1c7 -r 633cd0c46e6a mercurial/dispatch.py --- a/mercurial/dispatch.py Thu Feb 14 13:56:02 2013 -0600 +++ b/mercurial/dispatch.py Tue Feb 12 22:15:31 2013 +0100 @@ -334,7 +334,7 @@ self.cmdname = cmd = args.pop(0) args = map(util.expandpath, args) - for invalidarg in ("--cwd", "-R", "--repository", "--repo"): + for invalidarg in ("--cwd", "-R", "--repository", "--repo", "--config"): if _earlygetopt([invalidarg], args): def fn(ui, *args): ui.warn(_("error in definition for alias '%s': %s may only "