Revert "Handle duplicated --printresult arguments."
This reverts commit 25b50d1c
This commit is contained in:
parent
c8f3e689bd
commit
8598509f0b
|
@ -22,12 +22,7 @@ int main(int argc, char* argv[]) {
|
||||||
for (signed int i = 0; i < argc; ++i)
|
for (signed int i = 0; i < argc; ++i)
|
||||||
{
|
{
|
||||||
currentArg = static_cast<string_view>(argv[i]);
|
currentArg = static_cast<string_view>(argv[i]);
|
||||||
if (currentArg == ArgumentShort("printresult")) {
|
if (currentArg == ArgumentShort("printresult")) printResult = true;
|
||||||
if (printResult) {
|
|
||||||
cout << "ERROR: --printresult was specified two times" << '\n';
|
|
||||||
exit(EXIT_SUCCESS);
|
|
||||||
} else printResult = true;
|
|
||||||
}
|
|
||||||
else if (currentArg == ArgumentAssignable("target")) {
|
else if (currentArg == ArgumentAssignable("target")) {
|
||||||
target.assign(string());
|
target.assign(string());
|
||||||
string value = ArgumentAssignable::getValueFor(currentArg.data());
|
string value = ArgumentAssignable::getValueFor(currentArg.data());
|
||||||
|
|
Loading…
Reference in New Issue