summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 9c6be0bb75..1a8d51c652 100644
--- a/vl.c
+++ b/vl.c
@@ -6634,6 +6634,9 @@ int main(int argc, char **argv)
             const QEMUOption *popt;
 
             optind++;
+            /* Treat --foo the same as -foo.  */
+            if (r[1] == '-')
+                r++;
             popt = qemu_options;
             for(;;) {
                 if (!popt->name) {