From 3258d6832a6636db20db1779b41e48b324aa9344 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Fri, 17 May 2019 19:54:10 +0200 Subject: [PATCH] Disable program option guessing in check_service This disables the program option guessing in check_service to avoid ambiguous parameter parsing. refs #7188 --- plugins/check_service.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/check_service.cpp b/plugins/check_service.cpp index 707623862..cd0cf1462 100644 --- a/plugins/check_service.cpp +++ b/plugins/check_service.cpp @@ -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(); -- 2.40.0