fix adding missing options

This commit is contained in:
Jarryd Beck 2014-10-10 18:03:06 +11:00
parent 8c9249a8c6
commit 95af125bf6

View File

@ -259,8 +259,15 @@ Options::add_option
{
auto option = std::make_shared<OptionDetails>(desc, value);
add_one_option(s, option);
add_one_option(l, option);
if (s.size() > 0)
{
add_one_option(s, option);
}
if (l.size() > 0)
{
add_one_option(l, option);
}
//add the help details
}