src/relpipe-in-filesystem.cpp
branchv_0
changeset 4 d44ed75822e7
parent 0 467d09b62a12
child 10 3e1608320b6c
--- 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 <relpipe/cli/CLI.h>
 
 #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());