浏览代码

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

gingerBill 5 年之前
父节点
当前提交
7e6454b2f7
共有 1 个文件被更改,包括 4 次插入0 次删除
  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)) {