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:
parent
7baac757d2
commit
97fa5fbb27
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue