summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-07-07 10:55:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-07-08 15:21:19 +1000
commit09d6b965405bd9a1371e3fbd6d8d18a16c17d8a1 (patch)
tree9c646679357a6ba9590305ebff664aa960aea32b /tools
parentd0a29eee29bc4f15cf05793c4df8da79e627608c (diff)
downloadxorg-lib-libxkbcommon-09d6b965405bd9a1371e3fbd6d8d18a16c17d8a1.tar.gz
tools: expand help output for rmlvo-to-keymap
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/rmlvo-to-keymap.c27
1 files changed, 24 insertions, 3 deletions
diff --git a/tools/rmlvo-to-keymap.c b/tools/rmlvo-to-keymap.c
index f1822ec..40ef52f 100644
--- a/tools/rmlvo-to-keymap.c
+++ b/tools/rmlvo-to-keymap.c
@@ -36,9 +36,30 @@
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