mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Closes #76
This commit is contained in:
parent
3734fc6fca
commit
9bbd58c6ad
@ -859,7 +859,7 @@ public:
|
||||
* Used in conjuction with Argument.operator== e.g., parser["foo"] == true
|
||||
* @throws std::logic_error in case of an invalid argument name
|
||||
*/
|
||||
Argument &operator[](std::string_view aArgumentName) {
|
||||
Argument &operator[](std::string_view aArgumentName) const {
|
||||
auto tIterator = mArgumentMap.find(aArgumentName);
|
||||
if (tIterator != mArgumentMap.end()) {
|
||||
return *(tIterator->second);
|
||||
|
Loading…
Reference in New Issue
Block a user