From 67274c018d1872a24a54c1d0c9753b629833a8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kr=C3=B6ner?= Date: Fri, 2 Mar 2018 14:22:47 +0100 Subject: [PATCH] Really hide hidden cmd opts from help printout. --- src/CommandLine.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }