From 7e6454b2f7dff65e3b9a9dbd644b5a0905b09fff Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 31 Jan 2020 23:34:00 +0000 Subject: [PATCH] Add `odin [command] -help` (not requiring a file to be passed) --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 87669f8e3..317e8f577 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1180,6 +1180,10 @@ int main(int arg_count, char const **arg_ptr) { return 1; } + if (init_filename == "-help") { + build_context.show_help = true; + } + build_context.command = command; if (!parse_build_flags(args)) {