]> xenbits.xensource.com Git - xen.git/commitdiff
xl: Add help for 'xl info' command
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 10:44:19 +0000 (11:44 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 10:44:19 +0000 (11:44 +0100)
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/xl_cmdimpl.c

index 4315c5a5ee3933e0ed7d0447a2d4edc26aa13990..27aa04a1e9c9741770385cbfc39c5b5c6d6b5da7 100644 (file)
@@ -1173,6 +1173,9 @@ void help(char *command)
     } else if (!strcmp(command, "vcpu-set")) {
         printf("Usage: xl vcpu-set <Domain> <vCPUs>\n\n");
         printf("Set the number of active VCPUs for allowed for the domain.\n\n");
+    } else if(!strcmp(command, "info")) {
+        printf("Usage: xl info\n\n");
+        printf("Get information about Xen host.\n\n");
     } else if (!strcmp(command, "sched-credit")) {
         printf("Usage: xl sched-credit [-d <Domain> [-w[=WEIGHT]|-c[=CAP]]]\n\n");
         printf("Get/set credit scheduler parameters.\n");
@@ -2731,7 +2734,7 @@ int main_info(int argc, char **argv)
     while ((opt = getopt(argc, argv, "h")) != -1) {
         switch (opt) {
         case 'h':
-            help("vcpu-list");
+            help("info");
             exit(0);
         default:
             fprintf(stderr, "option `%c' not supported.\n", opt);