diff -r 157bb1d5e08a -r 15ee963675af src/relpipe-in-csv.cpp --- a/src/relpipe-in-csv.cpp Wed Sep 23 11:26:33 2020 +0200 +++ b/src/relpipe-in-csv.cpp Wed Sep 23 16:58:48 2020 +0200 @@ -30,6 +30,8 @@ #include #include "CSVCommand.h" +#include "CLIParser.h" +#include "Configuration.h" using namespace std; using namespace relpipe::cli; @@ -44,9 +46,11 @@ int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; try { + CLIParser cliParser; + Configuration configuration = cliParser.parse(cli.arguments()); CSVCommand command; std::shared_ptr writer(Factory::create(std::cout)); - command.process(cin, cli.arguments(), writer); + command.process(cin, writer, configuration); resultCode = CLI::EXIT_CODE_SUCCESS; } catch (RelpipeWriterException e) { fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());