All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/libx: xl uptime doesn't require argument
@ 2013-12-19 16:45 Julien Grall
  2013-12-19 16:54 ` Ian Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Grall @ 2013-12-19 16:45 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, ian.jackson, ian.campbell, patches

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>
---
 tools/libxl/xl_cmdimpl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 078f7a7..dce2699 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -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;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-09 14:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 16:45 [PATCH] tools/libx: xl uptime doesn't require argument Julien Grall
2013-12-19 16:54 ` Ian Jackson
2013-12-19 17:04   ` Julien Grall
2013-12-19 17:12     ` Ian Jackson
2014-01-09 14:53       ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.