MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / OptionHelp

Function OptionHelp

cli.cpp:375–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373\*---------------------------------------------------------------------------------------------------------*/
374
375void OptionHelp()
376{
377 std::string help_text;
378 help_text += "OpenRGB ";
379 help_text += VERSION_STRING;
380 help_text += ", for controlling RGB lighting.\n";
381 help_text += "Usage: OpenRGB (--device [--mode] [--color])...\n";
382 help_text += "\n";
383 help_text += "Options:\n";
384 help_text += "--gui Shows the GUI. GUI also appears when not passing any parameters\n";
385 help_text += "--startminimized Starts the GUI minimized to tray. Implies --gui, even if not specified\n";
386 help_text += "--client [IP]:[Port] Starts an SDK client on the given IP:Port (assumes port 6742 if not specified)\n";
387 help_text += "--server Starts the SDK's server\n";
388 help_text += "--server-port Sets the SDK's server port. Default: 6742 (1024-65535)\n";
389 help_text += "-l, --list-devices Lists every compatible device with their number\n";
390 help_text += "-d, --device [0-9 | \"name\"] Selects device to apply colors and/or effect to, or applies to all devices if omitted\n";
391 help_text += " Basic string search is implemented 3 characters or more\n";
392 help_text += " Can be specified multiple times with different modes and colors\n";
393 help_text += "-z, --zone [0-9] Selects zone to apply colors and/or sizes to, or applies to all zones in device if omitted\n";
394 help_text += " Must be specified after specifying a device\n";
395 help_text += "-c, --color [random | FFFFF,00AAFF ...] Sets colors on each device directly if no effect is specified, and sets the effect color if an effect is specified\n";
396 help_text += " If there are more LEDs than colors given, the last color will be applied to the remaining LEDs\n";
397 help_text += "-m, --mode [breathing | static | ...] Sets the mode to be applied, check --list-devices to see which modes are supported on your device\n";
398 help_text += "-b, --brightness [0-100] Sets the brightness as a percentage if the mode supports brightness\n";
399 help_text += "-s, --size [0-N] Sets the new size of the specified device zone.\n";
400 help_text += " Must be specified after specifying a zone.\n";
401 help_text += " If the specified size is out of range, or the zone does not offer resizing capability, the size will not be changed\n";
402 help_text += "-V, --version Display version and software build information\n";
403 help_text += "-p, --profile filename[.orp] Load the profile from filename/filename.orp\n";
404 help_text += "-sp, --save-profile filename.orp Save the given settings to profile filename.orp\n";
405 help_text += "--i2c-tools Shows the I2C/SMBus Tools page in the GUI. Implies --gui, even if not specified.\n";
406 help_text += " USE I2C TOOLS AT YOUR OWN RISK! Don't use this option if you don't know what you're doing!\n";
407 help_text += " There is a risk of bricking your motherboard, RGB controller, and RAM if you send invalid SMBus/I2C transactions.\n";
408 help_text += "--localconfig Use the current working directory instead of the global configuration directory.\n";
409 help_text += "--config path Use a custom path instead of the global configuration directory.\n";
410 help_text += "--nodetect Do not try to detect hardware at startup.\n";
411 help_text += "--noautoconnect Do not try to autoconnect to a local server at startup.\n";
412 help_text += "--loglevel [0-6 | error | warning ...] Set the log level (0: fatal to 6: trace).\n";
413 help_text += "--print-source Print the source code file and line number for each log entry.\n";
414 help_text += "-v, --verbose Print log messages to stdout.\n";
415 help_text += "-vv, --very-verbose Print debug messages and log messages to stdout.\n";
416 help_text += "--autostart-check Check if OpenRGB starting at login is enabled.\n";
417 help_text += "--autostart-disable Disable OpenRGB starting at login.\n";
418 help_text += "--autostart-enable arguments Enable OpenRGB to start at login. Requires arguments to give to OpenRGB at login.\n";
419
420 std::cout << help_text << std::endl;
421}
422
423void OptionVersion()
424{

Callers 2

cli_pre_detectionFunction · 0.85
cli_post_detectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected