Accept --foo as an alias for -foo.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2360 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/vl.c b/vl.c
index 9c6be0b..1a8d51c 100644
--- a/vl.c
+++ b/vl.c
@@ -6634,6 +6634,9 @@
             const QEMUOption *popt;
 
             optind++;
+            /* Treat --foo the same as -foo.  */
+            if (r[1] == '-')
+                r++;
             popt = qemu_options;
             for(;;) {
                 if (!popt->name) {