diff options
author | Jason <ammgws@users.noreply.github.com> | 2020-06-17 05:27:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 22:27:39 +0200 |
commit | 4e676ef73eeae16dd6c1f09bc2a9d98e8813aae2 (patch) | |
tree | 5281e81540aebd2b04993186e32c953f3c07ad0b /i3-msg | |
parent | 4085c4be3b45ddcb797f7c9026d0af0561d36ef1 (diff) | |
download | i3-4e676ef73eeae16dd6c1f09bc2a9d98e8813aae2.tar.gz i3-4e676ef73eeae16dd6c1f09bc2a9d98e8813aae2.zip |
i3-msg: add missing option (#4128)
Diffstat (limited to 'i3-msg')
-rw-r--r-- | i3-msg/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c index 0b0ef4e3..c1c8bb81 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -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) { @@ -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') { |