diff options
author | Christian Kröner <ckroener@gmx.net> | 2018-03-02 14:22:47 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-03-04 11:21:26 +0100 |
commit | 67274c018d1872a24a54c1d0c9753b629833a8f5 (patch) | |
tree | 10da941c52d646f344ff7a745fa4f94604585cd7 | |
parent | e89c421313b53ed98b249cccb9aee3a0d0344a3d (diff) |
Really hide hidden cmd opts from help printout.
-rw-r--r-- | src/CommandLine.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx index 27f30f3a1..6d74443f3 100644 --- a/src/CommandLine.cxx +++ b/src/CommandLine.cxx @@ -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); } |