Skip to content

Commit

Permalink
hlmem: Switch opt-in --color to opt-out --no-color (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedphoenix authored Dec 6, 2024
1 parent e5c012d commit d830381
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions other/haxelib/hlmem/Memory.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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> = [];
Expand All @@ -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" ) {
Expand Down

0 comments on commit d830381

Please sign in to comment.