t/ctl: Add usage information

This commit is contained in:
Christoph Haag 2021-07-07 00:49:28 +02:00
parent 250ef94d71
commit e21f4a2458

View file

@ -171,7 +171,10 @@ main(int argc, char *argv[])
if (optopt == 's') {
PE("Option -s requires an id to set.\n");
} else if (isprint(optopt)) {
PE("Option `-%c' unknown.\n", optopt);
PE("Option `-%c' unknown. Usage:\n", optopt);
PE(" -f <id>: Set focused client\n");
PE(" -p <id>: Set primary client\n");
PE(" -i <id>: Toggle whether client receives input\n");
} else {
PE("Option `\\x%x' unknown.\n", optopt);
}