--- a/src/CLIParser.h Sun Nov 22 19:22:25 2020 +0100
+++ b/src/CLIParser.h Mon Nov 23 16:25:57 2020 +0100
@@ -52,6 +52,7 @@
static const relpipe::writer::string_t OPTION_ENABLE_SECTIONS;
static const relpipe::writer::string_t OPTION_ENABLE_SUB_KEYS;
static const relpipe::writer::string_t OPTION_ENABLE_COMMENTS;
+ static const relpipe::writer::string_t OPTION_ENABLE_WHITESPACE;
static const relpipe::writer::string_t OPTION_ENABLE_LINE_NUMBERS;
static const relpipe::writer::string_t OPTION_ENABLE_EVENT_NUMBERS;
@@ -65,6 +66,7 @@
else if (option == OPTION_ENABLE_SECTIONS) c.enableSections = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_SUB_KEYS) c.enableSubKeys = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_COMMENTS) c.enableComments = parseBoolean(readNext(arguments, i));
+ else if (option == OPTION_ENABLE_WHITESPACE) c.enableWhitespace = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_LINE_NUMBERS) c.enableLineNumbers = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_EVENT_NUMBERS) c.enableEventNumbers = parseBoolean(readNext(arguments, i));
else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
@@ -81,6 +83,7 @@
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_SECTIONS = L"--enable-sections";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_SUB_KEYS = L"--enable-sub-keys";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_COMMENTS = L"--enable-comments";
+const relpipe::writer::string_t CLIParser::OPTION_ENABLE_WHITESPACE = L"--enable-whitespace";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_LINE_NUMBERS = L"--enable-line-numbers";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_EVENT_NUMBERS = L"--enable-event-numbers";