Allow disabling output/fine-tuning output

-nooutput disables output completely (both STDOUT and STDERR). -noinfo
disables INFO lines.  -nowarn disables WARN lines. -noerror disables
ERROR lines.
This commit is contained in:
Misa
2021-09-01 13:41:06 -07:00
committed by Misa Elizabeth Kai
parent c68a274c4f
commit 2eb9e23ecc
3 changed files with 63 additions and 0 deletions

View File

@@ -432,6 +432,10 @@ int main(int argc, char *argv[])
playassets = "levels/" + std::string(argv[i]) + ".vvvvvv";
})
}
else if (ARG("-nooutput"))
{
vlog_toggle_output(0);
}
else if (ARG("-forcecolor") || ARG("-forcecolour"))
{
vlog_toggle_color(1);
@@ -440,6 +444,18 @@ int main(int argc, char *argv[])
{
vlog_toggle_color(0);
}
else if (ARG("-noinfo"))
{
vlog_toggle_info(0);
}
else if (ARG("-nowarn"))
{
vlog_toggle_warn(0);
}
else if (ARG("-noerror"))
{
vlog_toggle_error(0);
}
#undef ARG_INNER
#undef ARG
else