From 37d204fa9a64e18081eb997c1d2602ebbd2df196 Mon Sep 17 00:00:00 2001 From: Thraix Date: Fri, 11 Oct 2019 19:01:30 +0200 Subject: [PATCH] Simplify logging of help commands --- src/ConfigCLI.cpp | 189 ++++++++++++++++++++++++---------------------- src/main.cpp | 58 +++++++------- 2 files changed, 127 insertions(+), 120 deletions(-) diff --git a/src/ConfigCLI.cpp b/src/ConfigCLI.cpp index 7e70407..b188905 100644 --- a/src/ConfigCLI.cpp +++ b/src/ConfigCLI.cpp @@ -7,139 +7,144 @@ void ConfigCLI::DisplayCLIHelp() { - LOG_INFO("MakeGen conf is used to create, modify and query the makegen.conf file."); - LOG_INFO(""); - LOG_INFO("Usage: makegen conf [] [--help] "); - LOG_INFO(""); - LOG_INFO("Generating config files"); - LOG_INFO(" gen Prompt the user to enter information to create config"); - LOG_INFO(""); + LOG_INFO(1+(char*)R"( +MakeGen conf is used to create, modify and query the makegen.conf file. - LOG_INFO("Modifying config settings"); - LOG_INFO(" add Add values to config settings which support multiple arguments"); - LOG_INFO(" remove Remove values to config settings which support multiple"); - LOG_INFO(" arguments"); - LOG_INFO(" set Set value to config settings which support only one argument"); - LOG_INFO(""); +Usage: makegen conf [] [--help] - LOG_INFO("Querying config settings"); - LOG_INFO(" get Get value of the config setting"); +Generating config files + gen Prompt the user to enter information to create config + +Modifying config settings + add Add values to config settings which support multiple arguments + remove Remove values to config settings which support multiple + arguments + set Set value to config settings which support only one argument + + +Querying config settings + get Get value of the config setting)"); } void ConfigCLI::DisplayGenHelp() { - LOG_INFO("Generate a config file from prompts"); - LOG_INFO(""); - LOG_INFO("Usage: makegen conf gen