Fix twiddle short command

pull/425/head
Michael Black W9MDB 2020-10-20 16:20:05 -05:00
rodzic 8a769c7011
commit f52007d02d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -107,7 +107,7 @@ static struct option long_options[] =
{"verbose", 0, 0, 'v'}, {"verbose", 0, 0, 'v'},
{"help", 0, 0, 'h'}, {"help", 0, 0, 'h'},
{"version", 0, 0, 'V'}, {"version", 0, 0, 'V'},
{"twiddle_timeout", 1, 0, 'X'}, {"twiddle_timeout", 1, 0, 'W'},
{"debug-time-stamps", 0, 0, 'Z'}, {"debug-time-stamps", 0, 0, 'Z'},
{0, 0, 0, 0} {0, 0, 0, 0}
}; };
@ -514,7 +514,7 @@ int main(int argc, char *argv[])
dump_caps_opt++; dump_caps_opt++;
break; break;
case 'X': case 'W':
if (!optarg) if (!optarg)
{ {
usage(); /* wrong arg count */ usage(); /* wrong arg count */