Received: from eggs.gnu.org ([140.186.70.92]:42110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB5T0-0008PU-4K for qemu-devel@nongnu.org; Tue, 04 Oct 2011 09:55:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB5Su-00024W-IG for qemu-devel@nongnu.org; Tue, 04 Oct 2011 09:55:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB5Su-00024L-5Z for qemu-devel@nongnu.org; Tue, 04 Oct 2011 09:55:24 -0400 Date: Tue, 4 Oct 2011 10:55:18 -0300 From: Luiz Capitulino Message-ID: <20111004105518.3404b76a@doriath> In-Reply-To: References: <1317200405-5060-1-git-send-email-xiawenc@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/1] Make the help info more friendly in monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Wayne Xia , qemu-devel@nongnu.org On Wed, 28 Sep 2011 10:16:19 +0100 Stefan Hajnoczi wrote: > On Wed, Sep 28, 2011 at 10:00 AM, Wayne Xia = wrote: > > During my test, I found it inconvenient when I type "help" or "help inf= o", > > because the information was shown without orderliness. This patch would= just > > show the help information in sorted order. > > > > For eg: > > (qemu)help > > acl_add > > acl_policy > > acl_remove > > acl_reset > > acl_show > > balloon > > block_passwd > > ... > > the command list is sorted. > > > > Wayne Xia (1): > > =A0Sort the help info shown in monitor > > > > =A0monitor.c | =A0 97 +++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++-- > > =A01 files changed, 93 insertions(+), 4 deletions(-) >=20 > This is a nice idea. We could keep hmp/qmp-commands.hx in sorted > order but that prevents us from keeping related commands together in > those files (and the generated documentation?). So sorting at > run-time makes sense. The info help command reads from hmp-commands.hx and the info_cmds array, I would prefer to get those sorted.