/* */ #include "HelpItem.h" namespace aria2 { #define DEFAULT_MSG _(" Default: ") #define TAGS_MSG _(" Tags: ") #define AVAILABLE_MSG _(" Available Values: ") std::string HelpItem::toString() const { std::string s(_usageText+"\n"); if(!_availableValues.empty()) { s += AVAILABLE_MSG; s += _availableValues; s += "\n"; } if(!_defaultValue.empty()) { s += DEFAULT_MSG; s += _defaultValue; s += "\n"; } s += TAGS_MSG; s += toTagString(); return s; } } // namespace aria2