class Appl: parseArgs enhanced; ebusd_send for hex command implemented.
This commit is contained in:
@@ -118,6 +118,14 @@ bool Appl::parseArgs(int argc, char* argv[])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// check args
|
||||
if (m_argNum > 0) {
|
||||
for (int i = 0; i <= m_argNum; i++)
|
||||
if (m_argv[m_argc - 1 - i].rfind("-", 0) != std::string::npos)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user