Disable program option guessing in check_service

This disables the program option guessing in check_service to avoid
ambiguous parameter parsing.

refs #7188
This commit is contained in:
Michael Insel 2019-05-17 19:54:10 +02:00
parent 736e0806d7
commit 3258d6832a
1 changed files with 4 additions and 2 deletions

View 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();