jarro2783

Results 148 comments of jarro2783

Which shell are you using? I can't reproduce this with bash.

If you try to get the value of an option that hasn't been defined it will crash. This is expected, although an exception would probably be better than a segfault.

Actually looking at the code I didn't think it would do that. I'll try to reproduce this myself.

Mine doesn't segfault: ``` src/example terminate called after throwing an instance of 'std::domain_error' what(): No value ``` Can you provide a full snippet that reproduces it?

I just realised that for me it throws `std::domain_error`, which is probably a bug. I think they are the same problem. We might just be using different versions of the...

I just looked at the code, and I realised that cxxopts is throwing the domain error. I think the intention here was that if you try to call `as` when...

Which version of cxxopts are you using? It should definitely throw an exception there. Can you give more of a stack trace?

> Running @eamanu 's snippet results in a segfault for me (`gcc version 9.1.1 20190503 (Red Hat 9.1.1-1) (GCC)`). Here is the gdb trace: > > ``` > Program received...

In this case it has not failed to parse, so that type of exception is not appropriate. The problem is that the user is trying to access something in a...

I always wanted this to be single header to just drop into a project, and it still doesn't seem huge yet. If there was a nice way to generate a...