From e226990706dec4e7008301f6403423124368d027 Mon Sep 17 00:00:00 2001 From: Ibraim Ganiev Date: Tue, 17 Jan 2023 12:55:09 +0300 Subject: [PATCH] Mention option name in unknown_option exception --- src/options_description.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options_description.cpp b/src/options_description.cpp index dc0eae8744..5790edd046 100644 --- a/src/options_description.cpp +++ b/src/options_description.cpp @@ -352,7 +352,7 @@ namespace boost { namespace program_options { const option_description* d = find_nothrow(name, approx, long_ignore_case, short_ignore_case); if (!d) - boost::throw_exception(unknown_option()); + boost::throw_exception(unknown_option(name)); return *d; }