diff --git a/src/main.cpp b/src/main.cpp index be91b4a..80738cf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ int main(int argc, char** argv) { args::ValueFlag workingDirFlag(parser, "Working Directory", "Which work directory to use.", {"workdir"}); args::Flag logTimeFlag(parser, "time-log", "Whether to show time logging.", {'t', "time-log"}); + args::Flag forceColorFlag(parser, "force-color", "Whether to force color text output.", {'c', "force-color"}); try { parser.ParseCLI(argc, argv); } catch (args::Help&) { @@ -42,6 +43,9 @@ int main(int argc, char** argv) { if (!workingDirectory.empty()) { chdir((const char*)std::filesystem::path(workingDirectory).c_str()); } + if (forceColorFlag.Get()){ + termcolor::colorize(std::cout); + } std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now(); std::function initialize =