MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / parse

Method parse

sources/commandline/Parser.cpp:10–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10bool Parser::parse(const QStringList& arguments)
11{
12 if (!_parser.parse(arguments))
13 {
14 return false;
15 }
16
17 for (Option* option : _options)
18 {
19 QString value = this->value(*option);
20 if (!option->validate(*this, value))
21 {
22 const QString error = option->getError();
23 if (!error.isEmpty())
24 {
25 _errorText = tr("%1 is not a valid option for %2\n%3").arg(value, option->name(), error);
26 }
27 else
28 {
29 _errorText = tr("%1 is not a valid option for %2").arg(value, option->name());
30 }
31 return false;
32 }
33 }
34 return true;
35}
36
37void Parser::process(const QStringList& arguments)
38{

Callers 15

sendToKodiFunction · 0.80
beginWizardCCFunction · 0.80
SaveHueConfigFunction · 0.80
beginWizardYeelightFunction · 0.80
beginWizardAtmoOrbFunction · 0.80
createHaLedConfigFunction · 0.80
renderReportFunction · 0.80
isJsonStringFunction · 0.80
initWebSocketFunction · 0.80
funcFunction · 0.80
lut_downloader.jsFile · 0.80
readFileFunction · 0.80

Calls 5

valueMethod · 0.95
isEmptyMethod · 0.80
nameMethod · 0.80
validateMethod · 0.45
getErrorMethod · 0.45

Tested by

no test coverage detected