From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMjmE-0005TW-9z for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:34:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMjmD-00051U-8u for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:34:42 -0400 Received: from mail-ww0-f45.google.com ([74.125.82.45]:52348) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjmD-00051H-2q for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:34:41 -0400 Received: by wwb13 with SMTP id 13so26846wwb.4 for ; Thu, 10 Jun 2010 08:34:38 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4C11060B.80807@redhat.com> Date: Thu, 10 Jun 2010 17:34:35 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1275921752-29420-1-git-send-email-berrange@redhat.com> <1275921752-29420-15-git-send-email-berrange@redhat.com> <4C0D09B0.7000305@codemonkey.ws> In-Reply-To: <4C0D09B0.7000305@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 14/19] Add a query-argv command to QMP List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On 06/07/2010 05:01 PM, Anthony Liguori wrote: > On 06/07/2010 09:42 AM, Daniel P. Berrange wrote: >> Add a new QMP command called 'query-argv' to information about the >> command >> line arguments supported by the QEMU binary. This is intended to >> remove the >> need for apps to parse '-help' output. > > This is just as bad as parsing -help output IMHO. > > The problem with something like this is that it discourages people from > using proper APIs to get at capabilities information. What about a query-qemuopts instead? This has a well-defined schema and, while it won't let you get all arguments, going forward libvirt is going to try and use more qemuopts options and only the bare minimum legacy options (-incoming, -S). Paolo