diff -r e5baa07d6e60 -r dbf093b8b9ac src/CLIParser.h --- a/src/CLIParser.h Tue Mar 30 20:26:08 2021 +0200 +++ b/src/CLIParser.h Thu Apr 01 17:54:46 2021 +0200 @@ -48,7 +48,8 @@ public: - static const relpipe::reader::string_t OPTION_WRITE_HEADER; + static const relpipe::reader::string_t OPTION_DEBUG; + static const relpipe::reader::string_t OPTION_DRY_RUN; Configuration parse(const std::vector& arguments) { Configuration c; @@ -56,8 +57,10 @@ for (int i = 0; i < arguments.size();) { relpipe::reader::string_t option = readNext(arguments, i); - if (option == OPTION_WRITE_HEADER) { - c.writeHeader = parseBoolean(readNext(arguments, i)); + if (option == OPTION_DEBUG) { + c.debug = parseBoolean(readNext(arguments, i)); + } else if (option == OPTION_DRY_RUN) { + c.dryRun = parseBoolean(readNext(arguments, i)); } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } @@ -68,7 +71,8 @@ } }; -const relpipe::reader::string_t CLIParser::OPTION_WRITE_HEADER = L"--write-header"; +const relpipe::reader::string_t CLIParser::OPTION_DEBUG = L"--debug"; +const relpipe::reader::string_t CLIParser::OPTION_DRY_RUN = L"--dry-run"; } }