fix(logging): add logging namespace and create logging::init method (#2336)

This commit is contained in:
ReenigneArcher
2024-04-02 20:57:57 -04:00
committed by GitHub
parent a1edc246f5
commit 2da6fb050a
9 changed files with 304 additions and 158 deletions

View File

@ -87,12 +87,12 @@ namespace args {
*
* EXAMPLES:
* ```cpp
* print_help("sunshine", 0, nullptr);
* help("sunshine", 0, nullptr);
* ```
*/
int
help(const char *name, int argc, char *argv[]) {
print_help(name);
logging::print_help(name);
return 0;
}
@ -109,7 +109,7 @@ namespace args {
*/
int
version(const char *name, int argc, char *argv[]) {
std::cout << PROJECT_NAME << " version: v" << PROJECT_VER << std::endl;
// version was already logged at startup
return 0;
}