mercurial/cmdutil.py
changeset 4734 9ac493f12901
parent 4733 0ecfc3b3f072
child 4824 f3f84d5cd268
--- a/mercurial/cmdutil.py	Thu Jun 28 15:56:25 2007 +0200
+++ b/mercurial/cmdutil.py	Thu Jun 28 16:03:45 2007 +0200
@@ -318,6 +318,15 @@
     fullargs = args
     cmd, func, args, options, cmdoptions = parse(ui, args)
 
+    if options["config"]:
+        raise util.Abort(_("Option --config may not be abbreviated!"))
+    if options["cwd"]:
+        raise util.Abort(_("Option --cwd may not be abbreviated!"))
+    if options["repository"]:
+        raise util.Abort(_(
+            "Option -R has to be separated from other options (i.e. not -qR) "
+            "and --repository may only be abbreviated as --repo!"))
+
     if options["encoding"]:
         util._encoding = options["encoding"]
     if options["encodingmode"]: