Limit it to verbose cos it kinda makes sense yknow

This commit is contained in:
/nick haya 2022-02-11 12:19:19 +08:00
parent 28cd1e0bfb
commit 033de55ddf

View file

@ -151,11 +151,12 @@ int main(int argc, char* argv[])
return EXIT_FAILURE;
}
RedirectIOToConsole();
parser pa(argc, argv);
if (pa[{"-v", "--verbose"}])
// Verbose redirects io output to console, if available
if (pa[{"-v", "--verbose"}]) {
RedirectIOToConsole();
log("", "Verbose mode enabled.", NORMAL, __FILENAME__, __LINE__);
}
SwitchState(&m);