Sfoglia il codice sorgente

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

gingerBill 5 anni fa
parent
commit
7e6454b2f7
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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)) {