Commit f75c0a2de6fa330404163564d424c650dc0c105e

Ran Benita 2023-07-01T19:39:31

xkbcli: allow compile-keymap without args All of the arguments have defaults, but still an argument is required. Make it work. Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tools/compile-keymap.c b/tools/compile-keymap.c
index d0877a6..d762624 100644
--- a/tools/compile-keymap.c
+++ b/tools/compile-keymap.c
@@ -322,7 +322,7 @@ main(int argc, char **argv)
     };
     int rc = 1;
 
-    if (argc <= 1) {
+    if (argc < 1) {
         usage(argv);
         return EXIT_INVALID_USAGE;
     }