From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXx2d-00065C-L0 for qemu-devel@nongnu.org; Fri, 04 Sep 2015 15:52:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXx2a-0005GH-Eg for qemu-devel@nongnu.org; Fri, 04 Sep 2015 15:52:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXx2a-0005Fz-AH for qemu-devel@nongnu.org; Fri, 04 Sep 2015 15:52:52 -0400 References: <1441395005-14907-1-git-send-email-lvivier@redhat.com> <1441395005-14907-2-git-send-email-lvivier@redhat.com> <55E9F40E.4010705@redhat.com> From: Eric Blake Message-ID: <55E9F692.9000804@redhat.com> Date: Fri, 4 Sep 2015 13:52:50 -0600 MIME-Version: 1.0 In-Reply-To: <55E9F40E.4010705@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4gQD7cVJINudrcpBFqmrkF8AI9s7b2kGv" Subject: Re: [Qemu-devel] [PATCH v4 1/3] vl: Add a flags to define parameters with optional arguments. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org, marcandre.lureau@gmail.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4gQD7cVJINudrcpBFqmrkF8AI9s7b2kGv Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/04/2015 01:42 PM, Eric Blake wrote: > 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'. >=20 > 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 =3D sign, and not by space separation. Also, we tend to avoid trailing '.' in subject lines. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --4gQD7cVJINudrcpBFqmrkF8AI9s7b2kGv 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/ iQEcBAEBCAAGBQJV6faSAAoJEKeha0olJ0NqeRoIAIPswp21EZy1quTB4asofxwm PGKONBiVg969PUyWHuxOFkP5xd0TYXvcKhNK75VCy5cSe3psG0dPCz6bLTszV0Qh Uj8W3qtW6JJ2TERoCDF9eJE/fkmIX6mS1BsV4TYTeIuwM8l8L5qi6HJ3jMJMDL+O cMZHkalsSwF+grEueLLwfzNGzSv0kmPe8XjyG2mP7bL0qM3r1DoY5refQJj+COk1 GJdSjKzKp2RPx4pOSIAdMdmQ9N6SUA7EC/40Hbkm3IE2Eatnux+3+KK7meFkaTUV LYG9PgPLiU8UdsbbEl91bsBeTDF1Jk8OjxMLXuJ1FeKrcSRZLVmNEQfn/rCT2PI= =sAH1 -----END PGP SIGNATURE----- --4gQD7cVJINudrcpBFqmrkF8AI9s7b2kGv--