showkey: make -a, -k, -s mutually exclusive

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko committed 2025-08-06 21:52:04 +02:00
1 parent 0b05a4e71e
commit 8f5d890071
1 file changed
+2 -2
+2 -2
View File
@@ -70,8 +70,8 @@ int showkey_main(int argc UNUSED_PARAM, char **argv)
INIT_G();
// FIXME: aks are all mutually exclusive
getopt32(argv, "aks");
// a,k,s are all mutually exclusive
getopt32(argv, "^" "aks" "\0" "a--ks:k--as:s--ak");
// prepare for raw mode
xget1(&tio, &tio0);