summaryrefslogtreecommitdiffstats
path: root/block/commit.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2017-03-17 11:45:39 +0100
committerMax Reitz2017-03-27 16:50:36 +0200
commit4581c16fce3c1078351f3424208f346b11b378f0 (patch)
tree0c021c9186f0b319aeebcea3a0b65345908dd6ee /block/commit.c
parentMerge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' int... (diff)
downloadqemu-4581c16fce3c1078351f3424208f346b11b378f0.tar.gz
qemu-4581c16fce3c1078351f3424208f346b11b378f0.tar.xz
qemu-4581c16fce3c1078351f3424208f346b11b378f0.zip
qemu-img: show help for invalid global options
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. This patch prints the help information and terminates instead of executing the sub-command. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20170317104541.28979-2-stefanha@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions