Re: [Qemu-devel] [PATCH] qemu-img resize: Fix option parsing

2011-05-03 Thread Stefan Hajnoczi
On Fri, Apr 29, 2011 at 10:06 AM, Kevin Wolf wrote: > For shrinking images, you're supposed to use a negative size. However, the > leading minus makes getopt think that it's an option and so you get the help > text if you don't use -- like in 'qemu-img resize test.img -- -1G'. > > This patch handl

[Qemu-devel] [PATCH] qemu-img resize: Fix option parsing

2011-04-29 Thread Kevin Wolf
For shrinking images, you're supposed to use a negative size. However, the leading minus makes getopt think that it's an option and so you get the help text if you don't use -- like in 'qemu-img resize test.img -- -1G'. This patch handles the size first and removes it from the argument list so tha