| 34 | } |
| 35 | |
| 36 | void printUsage() |
| 37 | { |
| 38 | printf("Usage: alienfx-cli [command=option,option,option] ... [loop]\nCommands:\tOptions:\n"); |
| 39 | for (int i = 0; i < ARRAYSIZE(commands); i++) |
| 40 | printf("%s\t%s.\n", commands[i].name, commands[i].desc); |
| 41 | printf("\nProbe argument (can be combined):\n\ |
| 42 | \tl - Define number of lights\n\ |
| 43 | \td - DeviceID and optionally LightID.\n\ |
| 44 | Zones:\tleft, right, top, bottom, front, rear, all (high-level) or ID of the Group (low-level).\n\ |
| 45 | Actions:color (disable action), pulse, morph,\n\ |
| 46 | \tbreath, spectrum, rainbow (low-level only).\n\ |
| 47 | \tUp to 9 colors can be entered.\n\ |
| 48 | Modes: 1 - global, 2 - keypress."); |
| 49 | } |
| 50 | |
| 51 | int CheckCommand(string name, int args) { |
| 52 | // find command id, return -1 if wrong. |