Consistencely allow '-?' to get a help text.

This commit is contained in:
Oliver Hartkopp
2009-01-13 09:32:45 +00:00
parent 278ba6377d
commit 4369ac1c55
10 changed files with 56 additions and 19 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ int main(int argc, char **argv)
for (i=0; i < 2048 ;i++) /* default: check all CAN-IDs */
do_set(i, ENABLE);
while ((opt = getopt(argc, argv, "m:v:r:t:h:l:qbBcf")) != -1) {
while ((opt = getopt(argc, argv, "m:v:r:t:h:l:qbBcf?")) != -1) {
switch (opt) {
case 'm':
sscanf(optarg, "%x", &mask);