From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBmhp-0007Jt-Oz for qemu-devel@nongnu.org; Wed, 23 Dec 2015 11:56:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBmho-00072g-Gr for qemu-devel@nongnu.org; Wed, 23 Dec 2015 11:56:05 -0500 Date: Wed, 23 Dec 2015 16:55:53 +0000 From: "Daniel P. Berrange" Message-ID: <20151223165553.GR20028@redhat.com> References: <1450782389-17326-1-git-send-email-berrange@redhat.com> <1450782389-17326-8-git-send-email-berrange@redhat.com> <5679897C.7060003@redhat.com> <20151222174159.GM10082@redhat.com> <56798D5B.4040800@redhat.com> <20151222180755.GN10082@redhat.com> <56799213.6090506@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56799213.6090506@redhat.com> Subject: Re: [Qemu-devel] [PATCH 7/7] qemu-img: allow specifying image as a set of options args Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , qemu-block@nongnu.org, qemu-devel@nongnu.org, Markus Armbruster , Paolo Bonzini , Andreas =?utf-8?Q?F=C3=A4rber?= On Tue, Dec 22, 2015 at 11:10:27AM -0700, Eric Blake wrote: > On 12/22/2015 11:07 AM, Daniel P. Berrange wrote: > > > A third option would be to keep using positional arguments, but > > add a '--source-opts' *boolean* flag to indicate how to interpret > > the positional arguments. ie without --source-opts we use the > > historic syntax, but with --source-opts, we assume the full QemuOpts > > syntax. > > Oh, nice compromise. It's relatively discoverable (grep --help output), > preserves back-compat of old scripts, and offers the full power for > clients that want the full power. I've implemented this now and it makes the patches soooo much simpler too, so an added win. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|