tools: expand help output for rmlvo-to-keymap
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jul 2020 00:55:30 +0000 (10:55 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 8 Jul 2020 05:21:19 +0000 (15:21 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/rmlvo-to-keymap.c

index f1822ecfe0d4def33ddc507a3466d5dba59d0143..40ef52f3b053536e0a7a39bf26080355413ab9ef 100644 (file)
 static void
 usage(char **argv)
 {
-    printf("Usage: %s [--verbose] [--rules <rules>] [--layout <layout>] [--variant <variant>] [--options <option>]\n",
-           argv[0]);
-    printf("Compile the RMLVO to a keymap and print it.\n");
+    printf("Usage: %s [OPTIONS]\n"
+           "\n"
+           "Compile the given RMLVO to a keymap and print it\n"
+           "\n"
+           "Options:\n"
+           " --verbose\n"
+           "    Enable verbose debugging output\n"
+           "\n"
+           "XKB-specific options:\n"
+           " --rules <rules>\n"
+           "    The XKB ruleset (default: '%s')\n"
+           " --model <model>\n"
+           "    The XKB model (default: '%s')\n"
+           " --layout <layout>\n"
+           "    The XKB layout (default: '%s')\n"
+           " --variant <variant>\n"
+           "    The XKB layout variant (default: '%s')\n"
+           " --options <options>\n"
+           "    The XKB options (default: '%s')\n"
+           "\n",
+           argv[0], DEFAULT_XKB_RULES,
+           DEFAULT_XKB_MODEL, DEFAULT_XKB_LAYOUT,
+           DEFAULT_XKB_VARIANT ? DEFAULT_XKB_VARIANT : "<none>",
+           DEFAULT_XKB_OPTIONS ? DEFAULT_XKB_OPTIONS : "<none>");
 }
 
 static bool