mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
can-calc-bit-timing: in case of invalid option exit with error
Link: https://github.com/linux-can/can-utils/issues/518
Reported-by: https://github.com/EnricoMontecaggi
Fixes: f4a9e5b57d ("can-calc-bit-timing.c: Reformat help/usage output to be compatible with help2man.")
This commit is contained in:
@@ -1514,11 +1514,6 @@ int main(int argc, char *argv[])
|
||||
data->verbose = true;
|
||||
break;
|
||||
|
||||
case '?':
|
||||
print_usage(basename(argv[0]));
|
||||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
case OPT_TQ:
|
||||
opt_bt->tq = strtoul(optarg, NULL, 10);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user