equal
deleted
inserted
replaced
45 int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
45 int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
46 |
46 |
47 try { |
47 try { |
48 CLIParser cliParser; |
48 CLIParser cliParser; |
49 Configuration configuration = cliParser.parse(cli.arguments()); |
49 Configuration configuration = cliParser.parse(cli.arguments()); |
50 std::unique_ptr<FilesystemCommandBase> command; |
50 std::unique_ptr<FilesystemCommand> command; |
51 if (configuration.parallelism == 1) command = std::make_unique<PlainFilesystemCommand>(); |
51 if (configuration.parallelism == 1) command = std::make_unique<PlainFilesystemCommand>(); |
52 else command = std::make_unique<ParallelFilesystemCommand>(); |
52 else command = std::make_unique<ParallelFilesystemCommand>(); |
53 command->process(cin, cout, configuration); |
53 command->process(cin, cout, configuration); |
54 resultCode = CLI::EXIT_CODE_SUCCESS; |
54 resultCode = CLI::EXIT_CODE_SUCCESS; |
55 } catch (RelpipeWriterException e) { |
55 } catch (RelpipeWriterException e) { |