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

#5186 Add deprecated arguments warnings

  • Loading branch information...
Jerry (Xinyu Hou)
Jerry (Xinyu Hou) committed Nov 3, 2016
1 parent 514e247 commit b8233fc1465a958058658124809ad17fb0d13939
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/lib/synergy/ArgParser.cpp
@@ -319,6 +319,26 @@ ArgParser::parseDeprecatedArgs(int argc, const char* const* argv, int& i)
i++;
return true;
}
+ else if (isArg(i, argc, argv, NULL, "--res-w")) {
+ LOG((CLOG_NOTE "--res-w is deprecated"));
+ i++;
+ return true;
+ }
+ else if (isArg(i, argc, argv, NULL, "--res-h")) {
+ LOG((CLOG_NOTE "--res-h is deprecated"));
+ i++;
+ return true;
+ }
+ else if (isArg(i, argc, argv, NULL, "--prm-wc")) {
+ LOG((CLOG_NOTE "--prm-wc is deprecated"));
+ i++;
+ return true;
+ }
+ else if (isArg(i, argc, argv, NULL, "--prm-hc")) {
+ LOG((CLOG_NOTE "--prm-hc is deprecated"));
+ i++;
+ return true;
+ }
return false;
}

0 comments on commit b8233fc

Please sign in to comment.