浏览代码

Allow both `-help` and `--help` if passed as `init_filename`

gingerBill 3 年之前
父节点
当前提交
1ec0b79345
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main.cpp

+ 2 - 1
src/main.cpp

@@ -2541,7 +2541,8 @@ int main(int arg_count, char const **arg_ptr) {
 		return 1;
 	}
 
-	if (init_filename == "-help") {
+	if (init_filename == "-help" ||
+	    init_filename == "--help") {
 		build_context.show_help = true;
 	}