This patch makes parameters in showkey.c mutually exclusive.

 showkey.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks,
Marek
diff --git a/console-tools/showkey.c b/console-tools/showkey.c
index ef16f6f..e94166a 100644
--- a/console-tools/showkey.c
+++ b/console-tools/showkey.c
@@ -64,7 +64,8 @@ int showkey_main(int argc UNUSED_PARAM, char **argv)
 		OPT_s = (1<<2),	// display only the raw scan-codes
 	};
 
-	// FIXME: aks are all mutually exclusive
+	// aks are all mutually exclusive
+	opt_complementary = "a--ks:k--as:s--ak";
 	getopt32(argv, "aks");
 
 	INIT_G();
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to