Browse Source

Add `odin [command] -help` (not requiring a file to be passed)

gingerBill 5 years ago
parent
commit
7e6454b2f7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main.cpp

+ 4 - 0
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)) {