Revert "Handle duplicated --printresult arguments."

This reverts commit 25b50d1c
This commit is contained in:
Username404 2021-07-11 15:44:30 +02:00
parent c8f3e689bd
commit 8598509f0b
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 6 deletions

View File

@ -22,12 +22,7 @@ int main(int argc, char* argv[]) {
for (signed int i = 0; i < argc; ++i)
{
currentArg = static_cast<string_view>(argv[i]);
if (currentArg == ArgumentShort("printresult")) {
if (printResult) {
cout << "ERROR: --printresult was specified two times" << '\n';
exit(EXIT_SUCCESS);
} else printResult = true;
}
if (currentArg == ArgumentShort("printresult")) printResult = true;
else if (currentArg == ArgumentAssignable("target")) {
target.assign(string());
string value = ArgumentAssignable::getValueFor(currentArg.data());