From: Gunnar Beutner Date: Wed, 25 Nov 2015 17:58:52 +0000 (+0100) Subject: Hide the --master_zone option in --help because it's not currently implemented X-Git-Tag: v2.4.1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf97d7cc57478bed20d53c93b8b74e52eccfe240;p=icinga2 Hide the --master_zone option in --help because it's not currently implemented fixes #10720 --- diff --git a/lib/cli/nodesetupcommand.cpp b/lib/cli/nodesetupcommand.cpp index 2ec07859f..20579a7b7 100644 --- a/lib/cli/nodesetupcommand.cpp +++ b/lib/cli/nodesetupcommand.cpp @@ -58,7 +58,6 @@ void NodeSetupCommand::InitParameters(boost::program_options::options_descriptio { visibleDesc.add_options() ("zone", po::value(), "The name of the local zone") - ("master_zone", po::value(), "The name of the master zone") ("master_host", po::value(), "The name of the master host for auto-signing the csr") ("endpoint", po::value >(), "Connect to remote endpoint; syntax: cn[,host,port]") ("listen", po::value(), "Listen on host,port") @@ -68,6 +67,9 @@ void NodeSetupCommand::InitParameters(boost::program_options::options_descriptio ("accept-config", "Accept config from master") ("accept-commands", "Accept commands from master") ("master", "Use setup for a master instance"); + + hiddenDesc.add_options() + ("master_zone", po::value(), "The name of the master zone"); } std::vector NodeSetupCommand::GetArgumentSuggestions(const String& argument, const String& word) const