From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCYfs-0005Z8-O3 for qemu-devel@nongnu.org; Thu, 13 May 2010 09:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCYfr-0007HA-6i for qemu-devel@nongnu.org; Thu, 13 May 2010 09:42:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60719) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCYfq-0007Gu-Uj for qemu-devel@nongnu.org; Thu, 13 May 2010 09:42:03 -0400 Message-ID: <4BEC01A7.1060008@redhat.com> Date: Thu, 13 May 2010 15:41:59 +0200 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/1] Add -version-simple argument, printing only version number. References: <1273739572-30840-1-git-send-email-Jes.Sorensen@redhat.com> <1273739572-30840-2-git-send-email-Jes.Sorensen@redhat.com> <20100513133322.GI12207@redhat.com> In-Reply-To: <20100513133322.GI12207@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: aliguori@us.ibm.com, clalance@redhat.com, qemu-devel@nongnu.org, crobinso@redhat.com On 05/13/10 15:33, Daniel P. Berrange wrote: > This omits the KVM version string which is something we also want to see. > It would also be nice to avoid having to parse the -help output to determine > ARGV supported too. I wonder if it would be a good idea to just produce a > well structured equivalent to -help that provides the same data, but in > JSON format for sane parsing. That would let peple easily determine the > supported ARGV as well as version number(s) I just made it print the version numbers that were already part of the regular string, but I see no problem adding a KVM version number to the output as well. As for the JSON stuff, then I'll volunteer you to write the patch for it :) To be honest, I have no clue what JSON is! Cheers, Jes