| 23 | } |
| 24 | |
| 25 | void ICommand::execute(const Strings & arguments, DisksClient & client) |
| 26 | { |
| 27 | CommandLineOptions options = [this, &arguments]() |
| 28 | { |
| 29 | try |
| 30 | { |
| 31 | return processCommandLineArguments(arguments); |
| 32 | } |
| 33 | catch (std::exception & exc) |
| 34 | { |
| 35 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "{}", exc.what()); |
| 36 | } |
| 37 | }(); |
| 38 | executeImpl(options, client); |
| 39 | } |
| 40 | |
| 41 | DiskWithPath & ICommand::getDiskWithPath(DisksClient & client, const CommandLineOptions & options, const String & name) |
| 42 | { |
no test coverage detected