fix adding missing options
This commit is contained in:
parent
8c9249a8c6
commit
95af125bf6
@ -259,8 +259,15 @@ Options::add_option
|
|||||||
{
|
{
|
||||||
auto option = std::make_shared<OptionDetails>(desc, value);
|
auto option = std::make_shared<OptionDetails>(desc, value);
|
||||||
|
|
||||||
add_one_option(s, option);
|
if (s.size() > 0)
|
||||||
add_one_option(l, option);
|
{
|
||||||
|
add_one_option(s, option);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (l.size() > 0)
|
||||||
|
{
|
||||||
|
add_one_option(l, option);
|
||||||
|
}
|
||||||
|
|
||||||
//add the help details
|
//add the help details
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user