Really hide hidden cmd opts from help printout.
This commit is contained in:
parent
e89c421313
commit
67274c018d
|
@ -276,6 +276,7 @@ static void help(void)
|
||||||
"Options:\n");
|
"Options:\n");
|
||||||
|
|
||||||
for (const auto &i : option_defs)
|
for (const auto &i : option_defs)
|
||||||
|
if(i.HasDescription() == true) // hide hidden options from help print
|
||||||
PrintOption(i);
|
PrintOption(i);
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
Loading…
Reference in New Issue