浏览代码

hlmem: Switch opt-in --color to opt-out --no-color (#729)

Leonardo 9 月之前
父节点
当前提交
d830381a03
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      other/haxelib/hlmem/Memory.hx

+ 5 - 3
other/haxelib/hlmem/Memory.hx

@@ -982,7 +982,7 @@ class Memory {
 		return args;
 	}
 
-	static var useColor = false;
+	static var useColor = true;
 	static function main() {
 		var m = new Memory();
 		var others: Array<Memory> = [];
@@ -999,8 +999,10 @@ class Memory {
 				m.loadBytecode(arg);
 				continue;
 			}
-			if( arg == "-c" || arg == "--color" ) {
-				useColor = true;
+			if( arg == "-c" || arg == "--color" )
+				continue;
+			if( arg == "--no-color" ) {
+				useColor = false;
 				continue;
 			}
 			if( arg == "--args" ) {