aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-01-31 23:34:00 +0000
committergingerBill <bill@gingerbill.org>2020-01-31 23:34:00 +0000
commit7e6454b2f7dff65e3b9a9dbd644b5a0905b09fff (patch)
treedb57998e0cba070a0bb35f124396cda1e0a163f9 /src
parent7a4ec48389a726d57ef8879f0c97f52b4e6b9c1c (diff)
Add `odin [command] -help` (not requiring a file to be passed)
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
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)) {