Tools: Improve xkbcli help messages and manual pages
authorPierre Le Marre <dev@wismill.eu>
Tue, 3 Oct 2023 08:28:47 +0000 (10:28 +0200)
committerWismill <dev@wismill.eu>
Thu, 5 Oct 2023 04:24:02 +0000 (06:24 +0200)
Add missing `--help` and `--short` entries.

tools/interactive-evdev.c
tools/registry-list.c
tools/xkbcli-how-to-type.1
tools/xkbcli-interactive-evdev.1

index 8da1056..2dece75 100644 (file)
@@ -391,6 +391,8 @@ usage(FILE *fp, char *progname)
                         "          --enable-compose (enable Compose)\n"
                         "          --consumed-mode={xkb|gtk} (select the consumed modifiers mode, default: xkb)\n"
                         "          --without-x11-offset (don't add X11 keycode offset)\n"
+                    "Other:\n"
+                        "          --help (display this help and exit)\n"
         );
 }
 
index c360da7..994860d 100644 (file)
@@ -40,6 +40,7 @@ usage(const char *progname, FILE *fp)
             "  --ruleset=foo .......... Load the 'foo' ruleset\n"
             "  --skip-default-paths ... Do not load the default XKB paths\n"
             "  --load-exotic .......... Load the exotic (extra) rulesets\n"
+            "  --help ................. Print this help and exit\n"
             "\n"
             "Trailing arguments are treated as XKB base directory installations.\n",
             progname);
index d5002ae..720d8b8 100644 (file)
@@ -34,6 +34,9 @@ The XKB layout variant
 .
 .It Fl \-options Ar options
 The XKB options
+.
+.It Fl \-help
+Print a help message and exit.
 .El
 .
 .Sh SEE ALSO
index 13c7b2c..167e3ec 100644 (file)
@@ -68,6 +68,9 @@ The XKB options
 Specify a keymap path.
 This option is mutually exclusive with the RMLVO options.
 .
+.It Fl \-short
+Do not print layout nor Unicode keysym translation.
+.
 .It Fl \-report\-state\-changes
 Report changes to the keyboard state
 .