Commit dff5efc848f5fe3fd8a9a67129a5234fe46ec3bb
1 parent
64423fb2
Accept --foo as an alias for -foo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2360 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
vl.c
| @@ -6634,6 +6634,9 @@ int main(int argc, char **argv) | @@ -6634,6 +6634,9 @@ int main(int argc, char **argv) | ||
| 6634 | const QEMUOption *popt; | 6634 | const QEMUOption *popt; |
| 6635 | 6635 | ||
| 6636 | optind++; | 6636 | optind++; |
| 6637 | + /* Treat --foo the same as -foo. */ | ||
| 6638 | + if (r[1] == '-') | ||
| 6639 | + r++; | ||
| 6637 | popt = qemu_options; | 6640 | popt = qemu_options; |
| 6638 | for(;;) { | 6641 | for(;;) { |
| 6639 | if (!popt->name) { | 6642 | if (!popt->name) { |