From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyqWk-0007fA-GR for qemu-devel@nongnu.org; Tue, 07 Aug 2012 16:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyqWj-0006Wc-7B for qemu-devel@nongnu.org; Tue, 07 Aug 2012 16:37:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyqWi-0006WC-Th for qemu-devel@nongnu.org; Tue, 07 Aug 2012 16:37:17 -0400 Message-ID: <50217C78.7070400@redhat.com> Date: Tue, 07 Aug 2012 14:37:12 -0600 From: Eric Blake MIME-Version: 1.0 References: <87obmmcxlh.fsf@blackfin.pond.sub.org> <87fw7ya42h.fsf@codemonkey.ws> <87ipcubhoc.fsf@blackfin.pond.sub.org> <87hasea1ie.fsf@blackfin.pond.sub.org> In-Reply-To: <87hasea1ie.fsf@blackfin.pond.sub.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigEAA9B229CC41B1CB68B958F6" Subject: Re: [Qemu-devel] For all targets and machine types: "start to monitor" smoke test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Peter Maydell , qemu-devel@nongnu.org, Anthony Liguori This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEAA9B229CC41B1CB68B958F6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/07/2012 02:30 PM, Markus Armbruster wrote: > Peter Maydell writes: >=20 >> On 7 August 2012 20:55, Markus Armbruster wrote: >>> Anthony Liguori writes: >>>> Perhaps we could add a QEMUMachine parameter that indicates that the= >>>> machine doesn't start without special options. >>> >>> Recommend to make it a string that lists the mandatory options. >> >> How are you going to say "need either option foo or option bar" ? I'm >> pretty sure we have some of those (eg "either you need to pass a flash= >> image or a kernel"). >=20 > Yes, we do. >=20 > The string should be suitable for inserting into -help. Convention in other programs' -help output is to express a mandatory selection from mutually exclusive options using {}, as in: { -foo | -bar } If both options can be used together, but cannot both be omitted, then this style works: { -foo [ -bar ] | -bar } Mutually exclusive options, but where omission is okay, would then be: [ { -foo | -bar } ] or even this variant, to express the default when both are omitted: { -foo | [ -bar ] } Using strings with metasyntax like that should be usable in qemu -help. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigEAA9B229CC41B1CB68B958F6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQIXx5AAoJEKeha0olJ0Nqe7oH/1RPJLUoeeNA8pOxIP+/QJYV nzPxSvHdDdN3kMLJO5zHhLdjfFk1PeaBZraeN0a7rrXT2gDEFli0uJTXxNCkSDuR aroXnGtV17sW7oyNpGCLUNi1gRrTkiY1kd/362ciQkgV25Z7VKf0esb/bqSVjnsi Yeu3CLQdks93wbc01JWQZ4jihk7v5cNbos6kB9zl0UW1zLFEnG+xMBqUwbXbh1Td iQfmlJxH0Wu1ME35O7u/+iUWG/hiFsZcnVQTuEzIU8tug5of75Bwy0J/fvtEm3jL /FaBVN/yBk2deKxkCHeEB6o8NlhF+Mj8BDbTVW6bHoNe2iAfR+1s1nlAeJX+HMk= =udNg -----END PGP SIGNATURE----- --------------enigEAA9B229CC41B1CB68B958F6--