It returns '?' for a bad option, whereas the glibc one does
not. Catch that so we behave identically.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
do_exit++;
exit_val = fio_monotonic_clocktest();
break;
do_exit++;
exit_val = fio_monotonic_clocktest();
break;
+ case '?':
+ log_err("%s: unrecognized option '%s'\n", argv[0],
+ argv[optind - 1]);
default:
do_exit++;
exit_val = 1;
default:
do_exit++;
exit_val = 1;