From: Scott Worley Date: Sat, 22 Aug 2026 01:11:42 +0000 (-0700) Subject: Accept short options X-Git-Tag: v1.1.0 X-Git-Url: http://git.scottworley.com/keystroke-timestamps/commitdiff_plain/refs/heads/master Accept short options --- diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 3108678..e0433bf 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -27,7 +27,7 @@ int main (int argc, char **argv) {0, 0, 0, 0 }, }; while (1) { - int c = getopt_long(argc, argv, "", long_options, NULL); + int c = getopt_long(argc, argv, "d:o:", long_options, NULL); if (c == -1) break; if (c == 'd') { device = optarg;