added command line option

This commit is contained in:
Erik Frojdh
2021-04-01 10:06:37 +02:00
parent 779a2a0199
commit 0299d315d5
6 changed files with 80 additions and 13 deletions

View File

@@ -55,6 +55,12 @@ void CmdParser::Parse(const std::string &s) {
command_ = arguments_[0];
arguments_.erase(begin(arguments_));
}
//allow comma sep
for (auto& arg : arguments_){
if (arg.back() == ',')
arg.pop_back();
}
DecodeIdAndPosition(command_.c_str());
}