xkbcli: allow compile-keymap without args
authorRan Benita <ran@unusedvar.com>
Sat, 1 Jul 2023 16:39:31 +0000 (19:39 +0300)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 3 Jul 2023 03:53:26 +0000 (13:53 +1000)
All of the arguments have defaults, but still an argument is required.
Make it work.

Signed-off-by: Ran Benita <ran@unusedvar.com>
tools/compile-keymap.c

index d0877a6838a781d86e8fe7548f8db9402cf47b6e..d7626240d3bf7490302de6ef447e6969180023d2 100644 (file)
@@ -322,7 +322,7 @@ main(int argc, char **argv)
     };
     int rc = 1;
 
-    if (argc <= 1) {
+    if (argc < 1) {
         usage(argv);
         return EXIT_INVALID_USAGE;
     }