relpipe-in-cli.cpp
branchv_0
changeset 18 9e543fd0254c
parent 16 70af16946466
child 19 22f493401ac0
--- a/relpipe-in-cli.cpp	Sun Jul 29 14:42:50 2018 +0200
+++ b/relpipe-in-cli.cpp	Thu Aug 09 22:58:38 2018 +0200
@@ -22,7 +22,8 @@
 	// TODO: help command
 	if (commandName == L"demo") return new DemoCommand();
 	else if (commandName == L"generate") return new ArgumentsCommand();
-	else if (commandName == L"generate-from-stdin") return new StdInCommand();
+	else if (commandName == L"generate-without-stdin") return new StdInCommand(false); // TODO: just for testing, StdInCommand(false) should work same as ArgumentsCommand()
+	else if (commandName == L"generate-from-stdin") return new StdInCommand(true);
 	else throw RelpipeCLIException(L"Unknown command: " + commandName, CLI::EXIT_CODE_UNKNOWN_COMMAND);
 }