From: pbrook Date: Sat, 27 Jan 2007 17:19:39 +0000 (+0000) Subject: Accept --foo as an alias for -foo. X-Git-Tag: release_0_9_0-iwjtag~41 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=113bef5c0df7471232e14db8ed237222f9ee60b3;p=qemu-xen-3.4-testing.git Accept --foo as an alias for -foo. --- 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) {