i3-msg: s/tree/get_tree for consistency, add new types to error message

This commit is contained in:
Michael Stapelberg 2010-11-21 21:39:09 +01:00
parent ae22fe065f
commit 0f083f6f78
1 changed files with 2 additions and 2 deletions

View File

@ -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') {