diff --git a/include/argparse.hpp b/include/argparse.hpp index d1b0d684..701cd0a3 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -841,7 +841,7 @@ class ArgumentParser { * @throws std::logic_error if the option has no value * @throws std::bad_any_cast if the option is not of type T */ - template T get(std::string_view aArgumentName) { + template T get(std::string_view aArgumentName) const { return (*this)[aArgumentName].get(); }