mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
Consistencely allow '-?' to get a help text.
This commit is contained in:
+2
-1
@@ -245,7 +245,7 @@ int main(int argc, char **argv)
|
||||
int eof, nbytes, i, j;
|
||||
char *fret;
|
||||
|
||||
while ((opt = getopt(argc, argv, "I:l:tg:s:xv")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "I:l:tg:s:xv?")) != -1) {
|
||||
switch (opt) {
|
||||
case 'I':
|
||||
infile = fopen(optarg, "r");
|
||||
@@ -289,6 +289,7 @@ int main(int argc, char **argv)
|
||||
verbose++;
|
||||
break;
|
||||
|
||||
case '?':
|
||||
default:
|
||||
print_usage(basename(argv[0]));
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user