Skip to contentSkip to conversation

xl: fix 'xl help' command

PATCH New Yang Hongyang 1 participant 1 message Jun 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: fix 'xl help' command

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.

tools/libxl/xl.c +1 -1
diff -r c514d69c71d8 tools/libxl/xl.c
@@ -76,7 +76,7 @@
 
     if (i >= cmdtable_len) {
         if (!strcmp(cmd, "help")) {
-            help(argv[1]);
+            help(argv[2]);
             exit(0);
         } else {
             fprintf(stderr, "command not implemented\n");
Signature · 2 lines
Regards
Yang Hongyang