| 541 | |
| 542 | |
| 543 | std::vector<std::string> SingleCommandOption::gen_help_line(const unsigned int width) |
| 544 | { |
| 545 | std::vector<std::string> ret; |
| 546 | ret.push_back(gen_help_line_generator(shortopt, longopt, help_text, width)); |
| 547 | if (!alias.empty()) |
| 548 | { |
| 549 | std::stringstream alias_help; |
| 550 | alias_help << "Alias for --" << longopt; |
| 551 | ret.push_back(gen_help_line_generator(0, alias, alias_help.str(), width)); |
| 552 | } |
| 553 | return ret; |
| 554 | } |
| 555 | |
| 556 | |
| 557 | std::string SingleCommandOption::gen_help_line_generator(const char opt_short, |