All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Eric Blake <eblake@redhat.com>,
	qemu-devel@nongnu.org, marcandre.lureau@gmail.com
Cc: Laurent Vivier <lvivier@redhat.com>
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	[thread overview]
Message-ID: <55E9F72C.9060008@weilnetz.de> (raw)
In-Reply-To: <55E9F40E.4010705@redhat.com>

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

  parent reply	other threads:[~2015-09-04 19:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04 19:30 [Qemu-devel] [PATCH v4 0/3] Improve -help Laurent Vivier
2015-09-04 19:30 ` [Qemu-devel] [PATCH v4 1/3] vl: Add a flags to define parameters with optional arguments Laurent Vivier
2015-09-04 19:42   ` Eric Blake
2015-09-04 19:52     ` Eric Blake
2015-09-04 19:55     ` Stefan Weil [this message]
2015-09-04 20:06       ` Eric Blake
2015-09-04 19:30 ` [Qemu-trivial] [PATCH v4 2/3] help: fix typo Laurent Vivier
2015-09-04 19:30   ` [Qemu-devel] " Laurent Vivier
2015-09-04 19:34   ` [Qemu-trivial] " Eric Blake
2015-09-04 19:34     ` [Qemu-devel] " Eric Blake
2015-09-06 11:06   ` [Qemu-trivial] " Michael Tokarev
2015-09-06 11:06     ` [Qemu-devel] " Michael Tokarev
2015-09-04 19:30 ` [Qemu-devel] [PATCH v4 3/3] Use help sub-sections to create sub-help options Laurent Vivier
2015-09-04 20:13   ` Eric Blake

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=55E9F72C.9060008@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=eblake@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@gmail.com \
    --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.