diff -r 86ceb97db7de -r 24c05e69d68f src/CLIParser.h --- a/src/CLIParser.h Sat May 23 23:58:50 2020 +0200 +++ b/src/CLIParser.h Mon May 25 19:36:06 2020 +0200 @@ -54,6 +54,7 @@ static const string_t OPTION_COPY_RENAMED; static const string_t OPTION_FILE; static const string_t OPTION_FILE_KEEP; + static const string_t OPTION_LIST_DATA_SOURCES; Configuration parse(const std::vector& arguments) { Configuration c; @@ -87,6 +88,8 @@ else if (value == L"true") c.keepFile = KeepFile::Always; else if (value == L"false") c.keepFile = KeepFile::Never; else throw relpipe::cli::RelpipeCLIException(L"Unsupported keep-file value: " + value + L" Expecting: true, false, auto", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); + } else if (option == OPTION_LIST_DATA_SOURCES) { + c.listDataSources = true; } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } addQuery(c, currentQuery); // last relation @@ -109,6 +112,7 @@ const string_t CLIParser::OPTION_COPY_RENAMED = L"--copy-renamed"; const string_t CLIParser::OPTION_FILE = L"--file"; const string_t CLIParser::OPTION_FILE_KEEP = L"--file-keep"; +const string_t CLIParser::OPTION_LIST_DATA_SOURCES = L"--list-data-sources"; } }