diff --git a/src/main.cpp b/src/main.cpp index 2cd12af..54ff8e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,14 @@ int main(int argc, char* argv[]) { else Yerbacon::exit({"No target was provided."}); } else if (currentArg == Argument("parallel")) parallel = true; - else if (currentArg == Argument("newlinesoff")) newLines = false; + else if (currentArg == ArgumentAssignable("newlines")) { + const string_view enabled = ArgumentAssignable::getValueFor(currentArg); + if (enabled == "off") { + newLines = false; + } else if (enabled == "on") { + newLines = true; + } else goto invalid_argument; + } else if (currentArg.ends_with(".ybcon")) files.insert(currentArg); else { if (argc == 2) {