tools/libx: xl uptime doesn't require argument
authorJulien Grall <julien.grall@linaro.org>
Thu, 19 Dec 2013 16:45:03 +0000 (16:45 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 19 Dec 2013 17:11:52 +0000 (17:11 +0000)
The current behavior is:

42sh> xl uptime
'xl uptime' requires at least 1 argument.

Usage: xl [-v] uptime [-s] [Domain]

The normal behavior should list uptime for each domain when there is no
parameters.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 078f7a73e005b26f3e1d0bcc5c0331f1c0d956f2..dce2699f70d44f819cb48e5727860c36cb9610f7 100644 (file)
@@ -6285,7 +6285,7 @@ int main_uptime(int argc, char **argv)
     int nb_doms = 0;
     int opt;
 
-    SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 1) {
+    SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 0) {
     case 's':
         short_mode = 1;
         break;