mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-01-30 23:00:11 -05:00
Complain if unknown argument is passed
This commit is contained in:
parent
ab137f2edb
commit
1b65446739
@ -47,10 +47,12 @@ int main(int argc, char **argv)
|
|||||||
case 'h':
|
case 'h':
|
||||||
print_usage();
|
print_usage();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
format = optarg;
|
format = optarg;
|
||||||
break;
|
break;
|
||||||
|
case '?':
|
||||||
|
fprintf(stderr, "Unknown argument. Try -h\n");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user