Skip to content

Commit 2675d7e

Browse files
committed
fix: move to tool args
1 parent 0d7072b commit 2675d7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Features/Tas/TasTools/MoveToTool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
MoveToTool moveToTool[2] = {{0}, {1}};
99

1010
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-
// }
11+
if (args.size() != 1 || args.size() != 2) {
12+
throw TasParserException(Utils::ssprintf("Wrong argument count for tool %s: %d", this->GetName(), args.size()));
13+
}
1414
if (args[0] == "off") {
1515
return std::make_shared<TasToolParams>(false);
1616
}

0 commit comments

Comments
 (0)