/* */ #include "HelpItem.h" #include namespace aria2 { #define DEFAULT_MSG _(" Default: ") #define TAGS_MSG _(" Tags: ") #define AVAILABLE_MSG _(" Available Values: ") std::ostream& operator<<(std::ostream& o, const HelpItem& helpItem) { o << helpItem._usageText << "\n"; if(!helpItem._availableValues.empty()) { o << AVAILABLE_MSG << helpItem._availableValues << "\n"; } if(!helpItem._defaultValue.empty()) { o << DEFAULT_MSG << helpItem._defaultValue << "\n"; } o << TAGS_MSG << helpItem.toTagString(); return o; } std::ostream& operator<<(std::ostream& o, const HelpItemHandle& helpItem) { o << *helpItem.get(); return o; } } // namespace aria2