]> git.scottworley.com Git - keystroke-timestamps/blobdiff - keystroke-timestamps.c
Accept short options
[keystroke-timestamps] / keystroke-timestamps.c
index 31086788cf34bec292b0b53512e05315fd569eb1..e0433bfa6668041b6167ec24b6caceced3927ab1 100644 (file)
@@ -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;