xl: fix 'xl help' command
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Jun 2010 06:49:07 +0000 (07:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Jun 2010 06:49:07 +0000 (07:49 +0100)
xl help 'command' should give the help of the 'command',
but current it does not, it just gives a full list of xl
supported commands. This patch fix it.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/xl.c

index 8ddba288d33bc5669245518c15c41404c252ba1b..226b0135136cc4775e049da744621605a5d30d42 100644 (file)
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
 
     if (i >= cmdtable_len) {
         if (!strcmp(cmd, "help")) {
-            help(argv[1]);
+            help(argv[2]);
             exit(0);
         } else {
             fprintf(stderr, "command not implemented\n");