]> granicus.if.org Git - icinga2/commitdiff
Hide the --master_zone option in --help because it's not currently implemented
authorGunnar Beutner <gunnar@beutner.name>
Wed, 25 Nov 2015 17:58:52 +0000 (18:58 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 25 Nov 2015 18:00:25 +0000 (19:00 +0100)
fixes #10720

lib/cli/nodesetupcommand.cpp

index 2ec07859ffbb0bf4c8e68588178cbe6f0e430ce9..20579a7b7f23e079763c41b7aa00201b9e994177 100644 (file)
@@ -58,7 +58,6 @@ void NodeSetupCommand::InitParameters(boost::program_options::options_descriptio
 {
        visibleDesc.add_options()
                ("zone", po::value<std::string>(), "The name of the local zone")
-               ("master_zone", po::value<std::string>(), "The name of the master zone")
                ("master_host", po::value<std::string>(), "The name of the master host for auto-signing the csr")
                ("endpoint", po::value<std::vector<std::string> >(), "Connect to remote endpoint; syntax: cn[,host,port]")
                ("listen", po::value<std::string>(), "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<std::string>(), "The name of the master zone");
 }
 
 std::vector<String> NodeSetupCommand::GetArgumentSuggestions(const String& argument, const String& word) const