Received: from eggs.gnu.org ([208.118.235.92]:53414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swx20-00069q-02 for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swx1t-0000M3-67 for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:09:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swx1s-0000LI-MB for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:09:37 -0400 From: Markus Armbruster References: <1343911554-11109-1-git-send-email-peter.maydell@linaro.org> Date: Thu, 02 Aug 2012 17:09:29 +0200 In-Reply-To: <1343911554-11109-1-git-send-email-peter.maydell@linaro.org> (Peter Maydell's message of "Thu, 2 Aug 2012 13:45:54 +0100") Message-ID: <87sjc5z5xy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , patches@linaro.org, Michael Tokarev , qemu-devel@nongnu.org, Blue Swirl , Eric Blake Peter Maydell writes: > For command line options which permit '?' meaning 'please list the > permitted values', add support for 'help' as a synonym, by abstracting > the check out into a helper function. > > This change means that in some cases where we were being lazy in > our string parsing, "?junk" will now be rejected as an invalid option > rather than being (undocumentedly) treated the same way as "?". > > Update the documentation to use 'help' rather than '?', since '?' > is a shell metacharacter and thus prone to fail confusingly if there > is a single character filename in the current working directory and > the '?' has not been escaped. It's therefore better to steer users > towards 'help', though '?' is retained for backwards compatibility. > > We do not, however, update the output of the system emulator's -help > (or any documentation autogenerated from the qemu-options.hx which > is the source of the -help text) because libvirt parses our -help > output and will break. At a later date when QEMU provides a better > interface so libvirt can avoid having to do this, we can update the > -help text too. > > Signed-off-by: Peter Maydell qdev properties named help won't work because they get interpreted as "-device FOO,help". No such properties exist now. Tolerable. Reviewed-by: Markus Armbruster