From: Yang Hongyang Subject: [PATCH]xl: fix 'xl help' command Date: Mon, 07 Jun 2010 14:06:01 +0800 Message-ID: <4C0C8C49.5060307@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: 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 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 diff -r c514d69c71d8 tools/libxl/xl.c --- a/tools/libxl/xl.c Fri Jun 04 11:39:06 2010 +0100 +++ b/tools/libxl/xl.c Mon Jun 07 22:06:20 2010 +0800 @@ -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"); -- Regards Yang Hongyang