| 200 | |
| 201 | |
| 202 | void Commands::ShellCompletion::call_arg_helper(const std::string &cmd, |
| 203 | const std::string &option) |
| 204 | { |
| 205 | for (auto const &c : commands->GetAllCommandObjects()) |
| 206 | { |
| 207 | if ((c->GetCommand() == cmd) || (c->GetAliasCommand() == cmd)) |
| 208 | { |
| 209 | unsigned int skip = 0; |
| 210 | if ('-' == option[0]) |
| 211 | { |
| 212 | skip++; |
| 213 | } |
| 214 | if ('-' == option[1]) |
| 215 | { |
| 216 | skip++; |
| 217 | } |
| 218 | std::cout << c->CallArgumentHelper(option.substr(skip)) |
| 219 | << std::endl; |
| 220 | return; |
| 221 | } |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | |
| 226 |
nothing calls this directly
no test coverage detected