#5657 Added serial argument in core

This commit is contained in:
Jerry (Xinyu Hou) 2016-10-14 13:51:27 +01:00
parent 1e5dfd3cb5
commit 92b29276d0
3 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,9 @@ ArgParser::parseServerArgs(ServerArgs& args, int argc, const char* const* argv)
else if (isArg(i, argc, argv, "", "--prm-hc", 1)) { else if (isArg(i, argc, argv, "", "--prm-hc", 1)) {
DpiHelper::s_primaryHeightCenter = synergy::string::stringToSizeType(argv[++i]); DpiHelper::s_primaryHeightCenter = synergy::string::stringToSizeType(argv[++i]);
} }
else if (isArg(i, argc, argv, "", "--serial-key", 1)) {
args.m_serial = argv[++i];
}
else { else {
LOG((CLOG_PRINT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname)); LOG((CLOG_PRINT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
return false; return false;

View File

@ -19,6 +19,7 @@
ServerArgs::ServerArgs() : ServerArgs::ServerArgs() :
m_configFile(), m_configFile(),
m_serial(),
m_config(NULL) m_config(NULL)
{ {
} }

View File

@ -28,5 +28,6 @@ public:
public: public:
String m_configFile; String m_configFile;
String m_serial;
Config* m_config; Config* m_config;
}; };