qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that bre


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py
Date: Mon, 20 Jul 2015 12:04:22 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 07/20/2015 11:57 AM, Eric Blake wrote:
> 'qemu' is unusual for accepting -single-dash-long-opts; I don't think
> python getopts does the same by default.

Or to rephrase, qemu acts as though it uses GNU getopt_long_only() (some
programs like gcc do likewise), but MOST programs that take long opts
behave like they use getopt_long().  It is only the getopt_long_only()
variant that accepts long options with a single dash, when it is
unambiguous with POSIX getopt() parsing of multiple smashed-together
short options.

[well, qemu rolls its own option parser instead of using
getopt_long_only(), but you get the picture]

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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