Commit dff5efc848f5fe3fd8a9a67129a5234fe46ec3bb

Authored by pbrook
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
... ... @@ -6634,6 +6634,9 @@ int main(int argc, char **argv)
6634 6634 const QEMUOption *popt;
6635 6635  
6636 6636 optind++;
  6637 + /* Treat --foo the same as -foo. */
  6638 + if (r[1] == '-')
  6639 + r++;
6637 6640 popt = qemu_options;
6638 6641 for(;;) {
6639 6642 if (!popt->name) {
... ...