Closed DWVoid closed 6 years ago
I'm guessing an option named help
is not defined in the parser? If so, what would your expectation be for trying to access an option that hasn't been defined? Would you rather simply return an empty parser results object that evaluates to false
on boolean conversion?
I've updated it so that it now handles std::unordered_map::at()
's std::out_of_range
exception and throws an argagg::unknown_option
exception with a better error message instead.
49ac33422a6b6838c2e6dd1fccd7dcd39f5ea089
stack trace:
Code:
According to the follwing page, the method
at()
does throw this exception when the key is not found.I believe that there is a misuse in the argagg code