Re: [PATCH] tools/virtio: virtio_test -h,--help should return directly

From: Stefano Garzarella
Date: Thu Mar 09 2023 - 04:10:33 EST


On Thu, Mar 09, 2023 at 04:56:09PM +0800, Rong Tao wrote:
Hi, Stefano.

I'm wondering, does '-h,--help' help() should 'exit(0)'? Is '-h' considered
a successful run and returns '0'.

You're right.
I thought -h would return an error, but that's not the case, so I guess
this patch is fine!

Thanks,
Stefano


Best wishes,
Rong