]> git.sur5r.net Git - i3/i3/commitdiff
i3-msg: s/tree/get_tree for consistency, add new types to error message
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Nov 2010 20:39:09 +0000 (21:39 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Nov 2010 20:39:09 +0000 (21:39 +0100)
i3-msg/main.c

index 295fe68334206aad0a4ad6311278abfcf51468e9..a945d3b173330559c93214630f15db64bd3067f6 100644 (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') {