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

Function CheckColor

cli.cpp:644–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644bool CheckColor(std::string argument, DeviceOptions* currentDevOpts)
645{
646 if(ParseColors(argument, currentDevOpts))
647 {
648 currentDevOpts->hasOption = true;
649 return true;
650 }
651 else
652 {
653 std::cout << "Error: Invalid color value: " + argument << std::endl;
654 return false;
655 }
656}
657
658bool OptionColor(std::vector<DeviceOptions>* current_devices, std::string argument, Options* options)
659{

Callers 1

OptionColorFunction · 0.85

Calls 1

ParseColorsFunction · 0.85

Tested by

no test coverage detected