diff --git a/api/python/src/COFF/objects/pyParserConfig.cpp b/api/python/src/COFF/objects/pyParserConfig.cpp index e470d81e..7723be82 100644 --- a/api/python/src/COFF/objects/pyParserConfig.cpp +++ b/api/python/src/COFF/objects/pyParserConfig.cpp @@ -25,7 +25,11 @@ void create(nb::module_& m) { .def(nb::init<>()) .def_prop_ro_static("default_conf", [] (const nb::object& /* self */) { return ParserConfig::default_conf(); }, - "Default configuration"_doc); + "Default configuration"_doc) + + .def_prop_ro_static("all", + [] (const nb::object& /* self */) { return ParserConfig::all(); }, + "All parsing options enabled"_doc); } diff --git a/include/LIEF/COFF/ParserConfig.hpp b/include/LIEF/COFF/ParserConfig.hpp index 038199eb..3d0a0963 100644 --- a/include/LIEF/COFF/ParserConfig.hpp +++ b/include/LIEF/COFF/ParserConfig.hpp @@ -27,6 +27,11 @@ class LIEF_API ParserConfig { static const ParserConfig DEFAULT; return DEFAULT; } + + static const ParserConfig& all() { + // To be updated when there is options that are off by default + return default_conf(); + } }; } }