We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7072b commit 2675d7eCopy full SHA for 2675d7e
src/Features/Tas/TasTools/MoveToTool.cpp
@@ -8,9 +8,9 @@
8
MoveToTool moveToTool[2] = {{0}, {1}};
9
10
std::shared_ptr<TasToolParams> MoveToTool::ParseParams(std::vector<std::string> args) {
11
- // if (args.size() == 1) {
12
- // throw TasParserException(Utils::ssprintf("Wrong argument count for tool %s: %d", this->GetName(), args.size()));
13
- // }
+ if (args.size() != 1 || args.size() != 2) {
+ throw TasParserException(Utils::ssprintf("Wrong argument count for tool %s: %d", this->GetName(), args.size()));
+ }
14
if (args[0] == "off") {
15
return std::make_shared<TasToolParams>(false);
16
}
0 commit comments