Re: [Qemu-devel] [PATCH] qemu-img: show help for invalid global options

2017-03-17 Thread Stefan Hajnoczi
On Thu, Mar 16, 2017 at 03:07:29AM +0100, Max Reitz wrote: > On 13.03.2017 06:11, Stefan Hajnoczi wrote: > > The qemu-img sub-command executes regardless of invalid global options: > > > > $ qemu-img --foo info test.img > > qemu-img: unrecognized option '--foo' > > image: test.img > > ...

Re: [Qemu-devel] [PATCH] qemu-img: show help for invalid global options

2017-03-15 Thread Max Reitz
On 13.03.2017 06:11, Stefan Hajnoczi wrote: > The qemu-img sub-command executes regardless of invalid global options: > > $ qemu-img --foo info test.img > qemu-img: unrecognized option '--foo' > image: test.img > ... > > The unrecognized option warning may be missed by the user. This can

Re: [Qemu-devel] [PATCH] qemu-img: show help for invalid global options

2017-03-13 Thread Eric Blake
On 03/13/2017 12:11 AM, Stefan Hajnoczi wrote: > The qemu-img sub-command executes regardless of invalid global options: > > $ qemu-img --foo info test.img > qemu-img: unrecognized option '--foo' > image: test.img > ... > > The unrecognized option warning may be missed by the user. This

[Qemu-devel] [PATCH] qemu-img: show help for invalid global options

2017-03-12 Thread Stefan Hajnoczi
The qemu-img sub-command executes regardless of invalid global options: $ qemu-img --foo info test.img qemu-img: unrecognized option '--foo' image: test.img ... The unrecognized option warning may be missed by the user. This can hide incorrect command-lines in scripts and confuse users.