tools/virtio: virtio_test -h,--help should return directly
authorRong Tao <rongtao@cestc.cn>
Thu, 9 Mar 2023 08:42:50 +0000 (16:42 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:30 +0000 (03:02 -0400)
commit6b27cd84a7917b995f66c052fd3453fdbd6e3d70
tree8e9b4ace806701f893ba8bdcd025ff690cf54191
parent9b2b3de63c07123c0ec9b912d7b8e77b150e520b
tools/virtio: virtio_test -h,--help should return directly

When we get help information, we should return directly, and we should not
execute test cases. Move the exit() directly into the help() function and
remove it from case '?'.

Signed-off-by: Rong Tao <rongtao@cestc.cn>
Message-Id: <tencent_822CEBEB925205EA1573541CD1C2604F4805@qq.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/virtio_test.c