Skip to content

Commit

Permalink
Adding verbose mode to rayx-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Atraxus committed Feb 24, 2025
1 parent 58b8b90 commit 2183fd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Intern/rayx-ui/src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ void Application::init() {
RAYX_PROFILE_FUNCTION_STDOUT();

m_CommandParser.analyzeCommands();
if (m_CommandParser.m_args.m_verbose) {
RAYX::setDebugVerbose(true);
RAYX_VERB << "Verbose logging enabled.";
}
if (m_CommandParser.m_args.m_benchmark) {
RAYX_VERB << "Starting in Benchmark Mode.\n";
RAYX::BENCH_FLAG = true;
Expand Down
3 changes: 2 additions & 1 deletion Intern/rayx-ui/src/CommandParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class CommandParser {
std::string m_providedFile; // -i (Input)
std::optional<int> m_deviceID;
bool m_benchmark = false;
bool m_verbose = false;
} m_args;

private:
Expand All @@ -44,5 +45,5 @@ class CommandParser {
{'i', {OptionType::STRING, "input", "Input RML File or Directory.", &(m_args.m_providedFile)}},
{'d', {OptionType::OPTIONAL_INT, "device", "Device ID.", &(m_args.m_deviceID)}},
{'b', {OptionType::BOOL, "benchmark", "Benchmark mode.", &(m_args.m_benchmark)}},
};
{'V', {OptionType::BOOL, "verbose", "Enable verbose logging in terminal.", &(m_args.m_verbose)}}};
};

0 comments on commit 2183fd1

Please sign in to comment.