mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Closes #74
This commit is contained in:
parent
4c69ebf3fe
commit
3734fc6fca
@ -841,7 +841,7 @@ public:
|
||||
* @throws std::logic_error if the option has no value
|
||||
* @throws std::bad_any_cast if the option is not of type T
|
||||
*/
|
||||
template <typename T = std::string> T get(std::string_view aArgumentName) {
|
||||
template <typename T = std::string> T get(std::string_view aArgumentName) const {
|
||||
return (*this)[aArgumentName].get<T>();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user