| 2612 | } |
| 2613 | |
| 2614 | inline |
| 2615 | void |
| 2616 | Options::generate_group_help |
| 2617 | ( |
| 2618 | String& result, |
| 2619 | const std::vector<std::string>& print_groups |
| 2620 | ) const |
| 2621 | { |
| 2622 | for (size_t i = 0; i != print_groups.size(); ++i) |
| 2623 | { |
| 2624 | const String& group_help_text = help_one_group(print_groups[i]); |
| 2625 | if (empty(group_help_text)) |
| 2626 | { |
| 2627 | continue; |
| 2628 | } |
| 2629 | result += group_help_text; |
| 2630 | if (i < print_groups.size() - 1) |
| 2631 | { |
| 2632 | result += '\n'; |
| 2633 | } |
| 2634 | } |
| 2635 | } |
| 2636 | |
| 2637 | inline |
| 2638 | void |