Really hide hidden cmd opts from help printout.

This commit is contained in:
Christian Kröner 2018-03-02 14:22:47 +01:00 committed by Max Kellermann
parent e89c421313
commit 67274c018d
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ static void help(void)
"Options:\n");
for (const auto &i : option_defs)
PrintOption(i);
if(i.HasDescription() == true) // hide hidden options from help print
PrintOption(i);
exit(EXIT_SUCCESS);
}