main.cpp: Simplify the condition used for text or files arguments

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-07-03 01:02:18 +02:00
parent 7baac757d2
commit 97fa5fbb27
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ int main(int argc, char* argv[]) {
} else goto invalid_argument;
}
else if (currentArgument == ArgumentShort("text")) { text_provided = true; printResult = true; }
else if ((currentArgument.ends_with(".ybcon") && !text_provided) || text_provided)
else if (text_provided || currentArgument.ends_with(".ybcon"))
Units.insert_or_assign(currentArgument, async(not parallel ? launch::deferred : launch::async, [currentArgument, &text_provided, &target, &newLines]() {
unit_result resultingPair;
try {