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,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);