Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
i3-msg: add missing option (#4128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammgws committed Jun 16, 2020
1 parent 4085c4b commit 4e676ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion i3-msg/main.c
Expand Up @@ -189,6 +189,8 @@ int main(int argc, char *argv[]) {
message_type = I3_IPC_MESSAGE_TYPE_GET_BAR_CONFIG;
} else if (strcasecmp(optarg, "get_binding_modes") == 0) {
message_type = I3_IPC_MESSAGE_TYPE_GET_BINDING_MODES;
} else if (strcasecmp(optarg, "get_binding_state") == 0) {
message_type = I3_IPC_MESSAGE_TYPE_GET_BINDING_STATE;
} else if (strcasecmp(optarg, "get_version") == 0) {
message_type = I3_IPC_MESSAGE_TYPE_GET_VERSION;
} else if (strcasecmp(optarg, "get_config") == 0) {
Expand All @@ -199,7 +201,7 @@ int main(int argc, char *argv[]) {
message_type = I3_IPC_MESSAGE_TYPE_SUBSCRIBE;
} else {
printf("Unknown message type\n");
printf("Known types: run_command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config, get_binding_modes, get_version, get_config, send_tick, subscribe\n");
printf("Known types: run_command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config, get_binding_modes, get_binding_state, get_version, get_config, send_tick, subscribe\n");
exit(EXIT_FAILURE);
}
} else if (o == 'q') {
Expand Down

0 comments on commit 4e676ef

Please sign in to comment.