Wrap up CaptureOptions encoding via string into member util functions

This commit is contained in:
baldurk
2018-02-14 19:21:55 +00:00
parent 1ee01e1f82
commit 468c6c1e80
6 changed files with 38 additions and 53 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ struct GlobalHookCommand : public Command
string debuglog = parser.get<string>("debuglog");
CaptureOptions cmdopts;
readCapOpts(parser.get<string>("capopts").c_str(), &cmdopts);
cmdopts.DecodeFromString(parser.get<string>("capopts"));
// make sure the user doesn't accidentally run this with 'a' as a parameter or something.
// "a.exe" is over 4 characters so this limit should not be a problem.