| 417 | } |
| 418 | |
| 419 | char const* CommandLineArguments::GetHelp(char const* arg) |
| 420 | { |
| 421 | auto it = this->Internals->Callbacks.find(arg); |
| 422 | if (it == this->Internals->Callbacks.end()) { |
| 423 | return nullptr; |
| 424 | } |
| 425 | |
| 426 | // Since several arguments may point to the same argument, find the one this |
| 427 | // one point to if this one is pointing to another argument. |
| 428 | CommandLineArgumentsCallbackStructure* cs = &(it->second); |
| 429 | for (;;) { |
| 430 | auto hit = this->Internals->Callbacks.find(cs->Help); |
| 431 | if (hit == this->Internals->Callbacks.end()) { |
| 432 | break; |
| 433 | } |
| 434 | cs = &(hit->second); |
| 435 | } |
| 436 | return cs->Help; |
| 437 | } |
| 438 | |
| 439 | void CommandLineArguments::SetLineLength(unsigned int ll) |
| 440 | { |