This commit is contained in:
Liam Waldron 2023-04-14 10:36:56 -04:00
parent df97708b38
commit 46f0a63b98

View File

@ -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;
} }