]> granicus.if.org Git - icinga2/commitdiff
icinga-app: show options for log-level
authorMhd Sulhan <ms@kilabit.info>
Thu, 22 Oct 2015 15:56:04 +0000 (22:56 +0700)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 26 Oct 2015 07:07:12 +0000 (08:07 +0100)
No one know what is the valid options for log-level without looking at
the source code.

fixes #10440

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
icinga-app/icinga.cpp

index 2365cb4bef39d2d94ac7026abca7f98bb1eb8aaf..f09df27a16840cee14b1918c4cb755ab4952cecb 100644 (file)
@@ -193,7 +193,9 @@ int Main(void)
                ("app,a", po::value<std::string>(), "application library name (default: icinga)")
                ("library,l", po::value<std::vector<std::string> >(), "load a library")
                ("include,I", po::value<std::vector<std::string> >(), "add include search directory")
-               ("log-level,x", po::value<std::string>(), "specify the log level for the console log");
+               ("log-level,x", po::value<std::string>()
+                       , "specify the log level for the console log.\n"
+                       "The valid value is either debug, notice, information (default), warning, or critical");
 
        po::options_description hiddenDesc("Hidden options");