cansniffer: exit after displaying help text
Do not start the application when the user wants to read the help text. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>pull/200/head
parent
64e33bf9ad
commit
ac55db508a
|
|
@ -298,6 +298,8 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
|
||||
case '?':
|
||||
print_usage(basename(argv[0]));
|
||||
exit(0);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue