]> granicus.if.org Git - icinga2/commitdiff
Disable program option guessing in check_service 7190/head
authorMichael Insel <michael@insel.email>
Fri, 17 May 2019 17:54:10 +0000 (19:54 +0200)
committerMichael Insel <michael@insel.email>
Fri, 17 May 2019 17:57:08 +0000 (19:57 +0200)
This disables the program option guessing in check_service to avoid
ambiguous parameter parsing.

refs #7188

plugins/check_service.cpp

index 70762386258ce549ce3612f784544dfd6c4aeb8d..cd0cf1462e012b254b9fe704e536c3d388723521 100644 (file)
@@ -43,8 +43,10 @@ static int parseArguments(int ac, WCHAR **av, po::variables_map& vm, printInfoSt
                        parser
                        .options(desc)
                        .style(
-                       po::command_line_style::unix_style |
-                       po::command_line_style::allow_long_disguise)
+                       po::command_line_style::unix_style &
+                       ~po::command_line_style::allow_guessing |
+                       po::command_line_style::allow_long_disguise
+                       )
                        .run(),
                        vm);
                vm.notify();