From 8598509f0b28f2801c04f8acb34a4e7c7ae71a2e Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 11 Jul 2021 15:44:30 +0200 Subject: [PATCH] Revert "Handle duplicated --printresult arguments." This reverts commit 25b50d1c --- src/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f124355..a431896 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,12 +22,7 @@ int main(int argc, char* argv[]) { for (signed int i = 0; i < argc; ++i) { currentArg = static_cast(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());