@ -262,7 +262,7 @@ int main(int argc, char** argv) {
.addBooleanOption("info-skins").setHelp("info-skins","print info about skins in the input file and exit")
.addBooleanOption("info-textures").setHelp("info-textures","print info about textures in the input file and exit")
.addBooleanOption("info").setHelp("info","print info about everything in the input file and exit, same as specifying all other --info-* options together")
.addOption("color","auto").setHelp("color","colored output for --info","on|off|auto")
.addOption("color","auto").setHelp("color","colored output for --info","on|4bit|off|auto")
.addBooleanOption("bounds").setHelp("bounds","show bounds of known attributes in --info output")
.addBooleanOption('v',"verbose").setHelp("verbose","verbose output from importer and converter plugins")
.addBooleanOption("profile").setHelp("profile","measure import and conversion time")
@ -730,12 +730,28 @@ is specified as well, the IDs reference attributes of the first mesh.)")
/* Colored output. Enable only if a TTY. */
Debug::FlagsuseColor;
if(args.value("color")=="on")
booluseColor24;
if(args.value("color")=="on"){
useColor=Debug::Flags{};
elseif(args.value("color")=="off")
useColor24=true;
}elseif(args.value("color")=="4bit"){
useColor=Debug::Flags{};
useColor24=false;
}elseif(args.value("color")=="off"){
useColor=Debug::Flag::DisableColors;
useColor24=false;
}elseif(Debug::isTty()){
useColor=Debug::Flags{};
/* https://unix.stackexchange.com/a/450366, not perfect but good
enoughI'dsay*/
/** @todo make this more robust and put directly on Debug,