From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yang Hongyang Subject: Re: [PATCH]xl:Add help for 'xl info' command Date: Tue, 27 Apr 2010 10:19:44 +0800 Message-ID: <4BD649C0.9090800@cn.fujitsu.com> References: <4BD648C3.9010303@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BD648C3.9010303@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Sorry,please ignore prev patch,the character encoding is not UTF-8. =================================================================== Add help for 'xl info' command Signed-off-by: Yang Hongyang 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 [options] [vars]\n\n"); printf("Create a domain based on .\n\n"); @@ -1192,6 +1193,11 @@ } else if (!strcmp(command, "vcpu-set")) { printf("Usage: xl vcpu-set \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