Fix bug in option parsing.
This commit is contained in:
parent
f371d1bef3
commit
48d605243b
1
main.cc
1
main.cc
|
@ -314,6 +314,7 @@ int main(int argc, char **argv)
|
||||||
if (!parse_opt(optarg, bufsecs) || bufsecs < 0) {
|
if (!parse_opt(optarg, bufsecs) || bufsecs < 0) {
|
||||||
badarg("-b");
|
badarg("-b");
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
fprintf(stderr, "ERROR: Unknown option\n");
|
fprintf(stderr, "ERROR: Unknown option\n");
|
||||||
|
|
Loading…
Reference in New Issue