| 527 | |
| 528 | |
| 529 | std::vector<struct option *> SingleCommandOption::get_struct_option() |
| 530 | { |
| 531 | std::vector<struct option *> ret; |
| 532 | ret.push_back(&getopt_option); |
| 533 | |
| 534 | // Add the alias, if configured |
| 535 | if (!alias.empty()) |
| 536 | { |
| 537 | ret.push_back(&getopt_alias); |
| 538 | } |
| 539 | return ret; |
| 540 | } |
| 541 | |
| 542 | |
| 543 | std::vector<std::string> SingleCommandOption::gen_help_line(const unsigned int width) |