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/db435adf1d9c7aef810e55ca5fd11c52c9b9fb0f?ds=sidebyside;hp=3e0d7d46765815f9918fc4137dca50cb74dd6af8 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;