This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5657 Added serial argument in core

  • Loading branch information...
Jerry (Xinyu Hou)
Jerry (Xinyu Hou) committed Oct 14, 2016
1 parent 1e5dfd3 commit 92b29276d0ab586c03c94b57733419028c035098
Showing with 5 additions and 0 deletions.
  1. +3 −0 src/lib/synergy/ArgParser.cpp
  2. +1 −0 src/lib/synergy/ServerArgs.cpp
  3. +1 −0 src/lib/synergy/ServerArgs.h
@@ -70,6 +70,9 @@ ArgParser::parseServerArgs(ServerArgs& args, int argc, const char* const* argv)
else if (isArg(i, argc, argv, "", "--prm-hc", 1)) {
DpiHelper::s_primaryHeightCenter = synergy::string::stringToSizeType(argv[++i]);
}
+ else if (isArg(i, argc, argv, "", "--serial-key", 1)) {
+ args.m_serial = argv[++i];
+ }
else {
LOG((CLOG_PRINT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
return false;
@@ -19,6 +19,7 @@
ServerArgs::ServerArgs() :
m_configFile(),
+ m_serial(),
m_config(NULL)
{
}
@@ -28,5 +28,6 @@ class ServerArgs : public ArgsBase {
public:
String m_configFile;
+ String m_serial;
Config* m_config;
};

0 comments on commit 92b2927

Please sign in to comment.