From 3adda04ca24b1b8dee5bcddd972865bb38b3bca8 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 9 Mar 2008 23:43:49 +0000 Subject: [PATCH] =?UTF-8?q?Be=20consistent=20in=20-clock=20parameter.=20Di?= =?UTF-8?q?splay=20also=20the=20list=20of=20available=20sources=20if=20no?= =?UTF-8?q?=20valid=20clock=20name=20has=20been=20specified.=20(Herv=C3=A9?= =?UTF-8?q?=20Poussineau)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4031 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index e2bcb58236..baa989144d 100644 --- a/vl.c +++ b/vl.c @@ -916,7 +916,7 @@ static void configure_alarms(char const *opt) char *arg; char *name; - if (!strcmp(opt, "help")) { + if (!strcmp(opt, "?")) { show_available_alarms(); exit(0); } @@ -958,10 +958,10 @@ next: /* 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 @@ static void help(int exitcode) "-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"