From 113bef5c0df7471232e14db8ed237222f9ee60b3 Mon Sep 17 00:00:00 2001 From: pbrook Date: Sat, 27 Jan 2007 17:19:39 +0000 Subject: [PATCH] Accept --foo as an alias for -foo. --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 9c6be0bb..1a8d51c6 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) { -- 2.39.5