ioping: don't print 'unknown option' twice, show usage
getopt() already emits warning about unknown option, so if we do that, too,
the result will look like this:
$ ./ioping -z
./ioping: invalid option -- 'z'
ioping: unknown option: -z
Don't warn about unknown option, instead show usage().
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Showing
Please register or sign in to comment