Merge pull request #7190 from Icinga/bugfix/check-service-ambiguous-parameter

Disable program option guessing in check_service
This commit is contained in:
Michael Friedrich 2019-05-20 16:09:42 +02:00 committed by GitHub
commit d875cd88d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();