All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yang Hongyang <yanghy@cn.fujitsu.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH]xl:Add help for 'xl info' command
Date: Tue, 27 Apr 2010 10:15:31 +0800	[thread overview]
Message-ID: <4BD648C3.9010303@cn.fujitsu.com> (raw)

Add help for 'xl info' command

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>

diff -r c87ec146229a tools/libxl/xl.c
--- a/tools/libxl/xl.c	Fri Apr 23 15:04:26 2010 +0100
+++ b/tools/libxl/xl.c	Tue Apr 27 18:12:28 2010 +0800
@@ -1107,6 +1107,7 @@
         printf(" vcpu-list                     list the VCPUs for all/some domains.\n\n");
         printf(" vcpu-pin                      Set which CPUs a VCPU can use.\n\n");
         printf(" vcpu-set                      Set the number of active VCPUs allowed for the domain.\n\n");
+        printf(" info                          Get information about Xen host.\n\n");
     } else if(!strcmp(command, "create")) {
         printf("Usage: xl create <ConfigFile> [options] [vars]\n\n");
         printf("Create a domain based on <ConfigFile>.\n\n");
@@ -1192,6 +1193,11 @@
     } 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 [options]\n\n");
+        printf("Get information about Xen host.\n\n");
+        printf("Options:\n\n");
+        printf("-h                     Print this help.\n");
     }
 }
 
@@ -2741,7 +2747,7 @@
     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);

-- 
Regards
Yang Hongyang

             reply	other threads:[~2010-04-27  2:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27  2:15 Yang Hongyang [this message]
2010-04-27  2:19 ` [PATCH]xl:Add help for 'xl info' command Yang Hongyang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BD648C3.9010303@cn.fujitsu.com \
    --to=yanghy@cn.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.