소스 검색

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;
 	}