From 033de55ddf529d714713910c9daca68f4aabafc6 Mon Sep 17 00:00:00 2001 From: /nick haya <74699483+The-SGPT@users.noreply.github.com> Date: Fri, 11 Feb 2022 12:19:19 +0800 Subject: [PATCH] Limit it to verbose cos it kinda makes sense yknow --- src/Main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index f27887b..d94c66b 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -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);