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