aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/cxxopts/include
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/cxxopts/include')
-rw-r--r--thirdparty/cxxopts/include/cxxopts.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/thirdparty/cxxopts/include/cxxopts.hpp b/thirdparty/cxxopts/include/cxxopts.hpp
index 0b272acec..189ba3ba7 100644
--- a/thirdparty/cxxopts/include/cxxopts.hpp
+++ b/thirdparty/cxxopts/include/cxxopts.hpp
@@ -1920,6 +1920,16 @@ class Options
return *this;
}
+ // Local patch: counterpart to allow_unrecognised_options so the flag can be
+ // reverted after a permissive parse. Not in upstream cxxopts 3.2.1; if that
+ // changes the upstream name wins.
+ Options&
+ disallow_unrecognised_options()
+ {
+ m_allow_unrecognised = false;
+ return *this;
+ }
+
Options&
set_width(std::size_t width)
{