Be consistent in -clock parameter. Display also the list of available sources if no valid clock name has been specified. (Hervé Poussineau) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4031 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/vl.c b/vl.c index e2bcb58..baa9891 100644 --- a/vl.c +++ b/vl.c
@@ -916,7 +916,7 @@ char *arg; char *name; - if (!strcmp(opt, "help")) { + if (!strcmp(opt, "?")) { show_available_alarms(); exit(0); } @@ -958,10 +958,10 @@ /* Disable remaining timers */ for (i = cur; i < count; i++) alarm_timers[i].name = NULL; + } else { + show_available_alarms(); + exit(1); } - - /* debug */ - show_available_alarms(); } QEMUClock *rt_clock; @@ -7704,7 +7704,7 @@ "-prom-env variable=value set OpenBIOS nvram variables\n" #endif "-clock force the use of the given methods for timer alarm.\n" - " To see what timers are available use -clock help\n" + " To see what timers are available use -clock ?\n" "-startdate select initial date of the clock\n" "\n" "During emulation, the following keys are useful:\n"