- for(list<OptBase *>::const_iterator i=opts.begin(); i!=opts.end(); ++i, ++j)
- {
- result += " "+*j;
- result += string(maxw+2-j->size(), ' ');
- result += (*i)->get_help();
- result += '\n';
- }
+ for(OptionList::const_iterator i=opts.begin(); i!=opts.end(); ++i, ++j)
+ result += format(" %s%s%s\n", *j, string(maxw+2-j->size(), ' '), (*i)->get_help());