From e0574837b6c5a6345730467577cefcd5d71a1061 Mon Sep 17 00:00:00 2001 From: VaclavT Date: Wed, 14 Apr 2021 07:50:36 +0200 Subject: [PATCH] allow -b option whole parsing of command line will be rewriten --- ml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml.cpp b/ml.cpp index b07f556..565b289 100644 --- a/ml.cpp +++ b/ml.cpp @@ -1954,7 +1954,7 @@ int main(int argc, char *argv[]) { for (size_t i = 0; i < files.size(); i++) run(read_file_contents(files[i]), env); // just one parameter - filename - } else if (argc == 2) { + } else if (argc == 2 && !cmdOptionExists(argv, argv + argc, "-b")) { std::string file_content = read_file_contents(argv[1]); if (file_content.find("#!") == 0) // shebang ? file_content.erase(0, file_content.find("\n") + 1); // TODO mac osx newline??