mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 16:09:52 +02:00
Consistencely allow '-?' to get a help text.
This commit is contained in:
+2
-1
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
|
||||
char *tty;
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "l:dwocs:b:")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "l:dwocs:b:?")) != -1) {
|
||||
switch (opt) {
|
||||
case 'l':
|
||||
fprintf(stderr, "Ignored option '-l'\n");
|
||||
@@ -120,6 +120,7 @@ int main(int argc, char **argv)
|
||||
print_usage(argv[0]);
|
||||
break;
|
||||
|
||||
case '?':
|
||||
default:
|
||||
print_usage(argv[0]);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user