mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-17 18:52:06 +00:00
feat: verbose option sets log level to debug
This commit is contained in:
@@ -122,7 +122,6 @@ ZoneCodeGeneratorArguments::ZoneCodeGeneratorArguments()
|
||||
: m_argument_parser(COMMAND_LINE_OPTIONS, std::extent_v<decltype(COMMAND_LINE_OPTIONS)>),
|
||||
m_task_flags(0u)
|
||||
{
|
||||
m_verbose = false;
|
||||
}
|
||||
|
||||
void ZoneCodeGeneratorArguments::PrintUsage() const
|
||||
@@ -166,7 +165,10 @@ bool ZoneCodeGeneratorArguments::ParseArgs(const int argc, const char** argv, bo
|
||||
}
|
||||
|
||||
// -v; --verbose
|
||||
m_verbose = m_argument_parser.IsOptionSpecified(OPTION_VERBOSE);
|
||||
if (m_argument_parser.IsOptionSpecified(OPTION_VERBOSE))
|
||||
con::globalLogLevel = con::LogLevel::DEBUG;
|
||||
else
|
||||
con::globalLogLevel = con::LogLevel::INFO;
|
||||
|
||||
// -p; --print
|
||||
if (m_argument_parser.IsOptionSpecified(OPTION_PRINT))
|
||||
|
||||
@@ -26,8 +26,6 @@ public:
|
||||
[[nodiscard]] bool ShouldGenerate() const;
|
||||
[[nodiscard]] bool ShouldPrint() const;
|
||||
|
||||
bool m_verbose;
|
||||
|
||||
std::vector<std::string> m_header_paths;
|
||||
std::vector<std::string> m_command_paths;
|
||||
std::string m_output_directory;
|
||||
|
||||
Reference in New Issue
Block a user