From: Stefan Weil <sw@weilnetz.de>
To: Bug 1022331 <1022331@bugs.launchpad.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
Date: Mon, 09 Jul 2012 19:29:42 +0200 [thread overview]
Message-ID: <4FFB1506.8000008@weilnetz.de> (raw)
In-Reply-To: <20120709082700.GC16198@redhat.com>
Am 09.07.2012 10:27, schrieb Daniel Berrange:
> On Sun, Jul 08, 2012 at 11:45:34PM +0100, Peter Maydell wrote:
>> On 8 July 2012 20:44, Michael Tokarev<1022331@bugs.launchpad.net> wrote:
>>> Please take this to your shell. The queston mark is a metacharacter for
>>> any *nix shell, you should just quote or backslash it. The same
>>> question mark is not special on windows.
>>
>> I think it's a legitimate complaint to say that this is not fantastically
>> friendly UI on QEMU's part though. (I've been bitten by it myself and
>> I've been dealing with Bourne shells for over a decade.), Picking a
>> string that requires metacharacter-quoting in the major shell most
>> people use is just a silly choice.
>>
>> I've thought before that we ought to make sure we have synonyms (eg 'help')
>> for all the list things that currently want '?'. Then we could mark '?'
>> as deprecated or present for back-compatibility only.
I fully agree.
>
> Or just introduce another character as an alternative to '?', eg '-'
> or even accept the string 'help' eg "-cpu help"
>
> Daniel
What about "--cpu [list|help|?]"?
It is already possible to use "--cpu ?anystring" because the code
only tests the first character, but I don't know whether that was
intentional.
As Peter already wrote, there are more options which support '?'
today (e.g. the list of ethernet NICs), and all should use a similar
syntax.
Regards
Stefan W.
PS.
I'd also deprecate long command line options starting with a single '-'.
next prev parent reply other threads:[~2012-07-09 17:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
2012-07-08 22:45 ` Peter Maydell
2012-07-09 8:27 ` Daniel P. Berrange
2012-07-09 17:29 ` Stefan Weil [this message]
2012-07-09 12:33 ` Peter Maydell
2012-08-26 12:06 ` Aurelien Jarno
2012-09-07 14:33 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FFB1506.8000008@weilnetz.de \
--to=sw@weilnetz.de \
--cc=1022331@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.