qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 1/3] vl: Add a flags to define parameters wit


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH v4 1/3] vl: Add a flags to define parameters with optional arguments.
Date: Fri, 04 Sep 2015 21:55:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Am 04.09.2015 um 21:42 schrieb Eric Blake:
> On 09/04/2015 01:30 PM, Laurent Vivier wrote:
>> The goal is to be able to use '-help' alone, or with
>> a sub-section, i.e. '-help network,usb'.
> Uggh. I hate reinventing the wheel.  We aren't using getopt_long_only();
> but if we were, the ONLY way to specify optional arguments to a long
> option is by using the = sign, and not by space separation.
>
> That is, '-help=network,usb' would work, but '-help network,usb' would
> NOT be seen as arguments to -help.
>
> While I'd really rather we just use getopt_long_only(), that's a much
> bigger change.  But we should at least mirror its semantics, because it
> is VERY confusing to have subtly different command-line behavior than
> most apps out there.

Wasn't there a plan for a version jump (QEMU v3) with the next release?

Then we could really go a step towards getopt_long_only
and require options written like --help instead of -help.
Today both variants work, so we would have to remove
support for the -help form.

Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]