From 0f083f6f783688f07e5a826dcda6516392066abf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 21 Nov 2010 21:39:09 +0100 Subject: [PATCH] i3-msg: s/tree/get_tree for consistency, add new types to error message --- i3-msg/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3-msg/main.c b/i3-msg/main.c index 295fe683..a945d3b1 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -134,11 +134,11 @@ int main(int argc, char *argv[]) { message_type = I3_IPC_MESSAGE_TYPE_GET_WORKSPACES; else if (strcasecmp(optarg, "get_outputs") == 0) message_type = I3_IPC_MESSAGE_TYPE_GET_OUTPUTS; - else if (strcasecmp(optarg, "tree") == 0) + else if (strcasecmp(optarg, "get_tree") == 0) message_type = I3_IPC_MESSAGE_TYPE_GET_TREE; else { printf("Unknown message type\n"); - printf("Known types: command, get_workspaces\n"); + printf("Known types: command, get_workspaces, get_outputs, get_tree\n"); exit(EXIT_FAILURE); } } else if (o == 'q') { -- 2.39.5