src/relpipe-in-jack.cpp
branchv_0
changeset 8 8ef1980db907
parent 2 e5f0d3f92eb4
child 11 07247893054e
--- a/src/relpipe-in-jack.cpp	Sat Jun 06 01:50:42 2020 +0200
+++ b/src/relpipe-in-jack.cpp	Tue Sep 29 22:53:08 2020 +0200
@@ -21,6 +21,8 @@
 #include <relpipe/writer/Factory.h>
 #include <relpipe/cli/CLI.h>
 
+#include "Configuration.h"
+#include "CLIParser.h"
 #include "JackException.h"
 #include "JackCommand.h"
 
@@ -44,7 +46,9 @@
 	try {
 		signal(SIGHUP, finish);
 		signal(SIGINT, finish);
-		jackCommand.reset(new JackCommand());
+		CLIParser cliParser;
+		Configuration configuration = cliParser.parse(cli.arguments());
+		jackCommand.reset(new JackCommand(configuration));
 		std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
 		jackCommand->processJackStream(writer, std::bind(fflush, stdout)); // std::bind(fflush, XXX) Factory::create(XXX) must be the same stream XXX
 		resultCode = CLI::EXIT_CODE_SUCCESS;