[Qemu-devel] Re: [PATCH 3/3] Fail if detecting an unknown option

2010-12-06 Thread Jes Sorensen
On 12/06/10 10:37, Kevin Wolf wrote: > Am 06.12.2010 09:02, schrieb Jes Sorensen: >> On 12/03/10 13:30, Kevin Wolf wrote: >> There is a perfectly logical explanation for that. Doing that would >> require for me to have clue, which is a bit much to expect :) >> >> That said, we should really do the

[Qemu-devel] Re: [PATCH 3/3] Fail if detecting an unknown option

2010-12-06 Thread Kevin Wolf
Am 06.12.2010 09:02, schrieb Jes Sorensen: > On 12/03/10 13:30, Kevin Wolf wrote: >> Am 02.12.2010 18:46, schrieb jes.soren...@redhat.com: >>> diff --git a/qemu-img.c b/qemu-img.c >>> index d0dc445..f2e1c94 100644 >>> --- a/qemu-img.c >>> +++ b/qemu-img.c >>> @@ -304,6 +304,12 @@ static int img_cre

[Qemu-devel] Re: [PATCH 3/3] Fail if detecting an unknown option

2010-12-06 Thread Jes Sorensen
On 12/03/10 13:30, Kevin Wolf wrote: > Am 02.12.2010 18:46, schrieb jes.soren...@redhat.com: >> diff --git a/qemu-img.c b/qemu-img.c >> index d0dc445..f2e1c94 100644 >> --- a/qemu-img.c >> +++ b/qemu-img.c >> @@ -304,6 +304,12 @@ static int img_create(int argc, char **argv) >> flags = 0; >>

[Qemu-devel] Re: [PATCH 3/3] Fail if detecting an unknown option

2010-12-03 Thread Kevin Wolf
Am 02.12.2010 18:46, schrieb jes.soren...@redhat.com: > From: Jes Sorensen > > This patch changes qemu-img to exit if an unknown option is detected, > instead of trying to continue with a set of arguments which may be > incorrect. > > Signed-off-by: Jes Sorensen > --- > qemu-img.c | 48 +