MCPcopy Create free account
hub / github.com/T-Troll/alienfx-tools / printUsage

Function printUsage

alienfx-cli/alienfx-cli.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void 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\
44Zones:\tleft, right, top, bottom, front, rear, all (high-level) or ID of the Group (low-level).\n\
45Actions:color (disable action), pulse, morph,\n\
46\tbreath, spectrum, rainbow (low-level only).\n\
47\tUp to 9 colors can be entered.\n\
48Modes: 1 - global, 2 - keypress.");
49}
50
51int CheckCommand(string name, int args) {
52 // find command id, return -1 if wrong.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected