a
This commit is contained in:
parent
df97708b38
commit
46f0a63b98
@ -10,7 +10,7 @@ int main(int argc, char *argv[]) {
|
|||||||
while ((opt = getopt(argc, argv, ":if:nl")) != -1) {
|
while ((opt = getopt(argc, argv, ":if:nl")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
case 'n':
|
case 'n':
|
||||||
mkevent();
|
mkevent(argc, argv);
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
printevents();
|
printevents();
|
||||||
@ -22,9 +22,5 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; optind < argc; optind++) {
|
|
||||||
printf("extra arguments: %s\n", argv[optind]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user