diff -r 62eac7ab4cf4 -r d44ed75822e7 src/relpipe-in-filesystem.cpp --- a/src/relpipe-in-filesystem.cpp Sun Jan 13 16:44:11 2019 +0100 +++ b/src/relpipe-in-filesystem.cpp Wed Jan 16 17:23:05 2019 +0100 @@ -1,6 +1,6 @@ /** * Relational pipes - * Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info) + * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include #include "FilesystemCommand.h" +#include "CLIParser.h" using namespace relpipe::cli; using namespace relpipe::writer; @@ -43,8 +44,10 @@ int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; try { + CLIParser cliParser; + Configuration configuration = cliParser.parse(cli.arguments()); FilesystemCommand command; - command.process(cin, cout); + command.process(cin, cout, configuration); resultCode = CLI::EXIT_CODE_SUCCESS; } catch (RelpipeWriterException e) { fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());