From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHFQO-0003yJ-To for qemu-devel@nongnu.org; Mon, 20 Jul 2015 14:04:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHFQO-0000WM-1m for qemu-devel@nongnu.org; Mon, 20 Jul 2015 14:04:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHFQN-0000WG-U0 for qemu-devel@nongnu.org; Mon, 20 Jul 2015 14:04:24 -0400 References: <1435782155-31412-1-git-send-email-armbru@redhat.com> <1435782155-31412-6-git-send-email-armbru@redhat.com> <55AD36A1.6050405@redhat.com> From: Eric Blake Message-ID: <55AD3826.5020903@redhat.com> Date: Mon, 20 Jul 2015 12:04:22 -0600 MIME-Version: 1.0 In-Reply-To: <55AD36A1.6050405@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gDQcSv3hJq5GbjNDn4g1dIK1UKKT4sLu7" Subject: Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: kwolf@redhat.com, berto@igalia.com, mdroth@linux.vnet.ibm.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gDQcSv3hJq5GbjNDn4g1dIK1UKKT4sLu7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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] --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --gDQcSv3hJq5GbjNDn4g1dIK1UKKT4sLu7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVrTgmAAoJEKeha0olJ0Nq6sQH/0bi/OqWrWO8WSXEgOnSn9yB oVsOmVLPhCk+zW8ps03ouUlr2mkazP1I68YwDz3AYafDixmX3xZFjhkqY5PmeEbE QCJewl4Yg5+lz9ruqK0QzCnxZmsb6bspZh5ZSMAN8Xmk5KaTKP4ECuzC2lrzKJPI REYjOdl9lw0OvN9uOCu04r+d4GAlLFLRgrgnJz+QX+tEfrDEez498Owbd0xd/9Yu oEwF+OjsqH+ONx6pLrDcAZopAlM9EIwq/llgtu5gVXRgdeBAUuJP8n7Ju2Sdbav6 pk3WjZvAai4jrINKvAhZ6WVaCFLtkxZT2zohnhhwdFFgswwCKtWAeO26Bee9Z+o= =Ckvq -----END PGP SIGNATURE----- --gDQcSv3hJq5GbjNDn4g1dIK1UKKT4sLu7--