cmdopt: silence unused description param for now

This commit is contained in:
Danny Robson 2015-06-11 19:30:19 +10:00
parent eabe3e3a3f
commit c87d7d70b3

View File

@ -72,8 +72,14 @@ namespace util { namespace cmdopt {
///////////////////////////////////////////////////////////////////////////
template <typename T, typename ...Args>
T&
parser::add (char shortname, std::string longname, std::string description, Args&&... args)
parser::add (char shortname,
std::string longname,
std::string description,
Args&&... args)
{
// TODO: make use of the description with the help option
(void)description;
auto handler = std::make_unique<T> (longname, std::forward<Args> (args)...);
T& ref = *handler;