You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing this would provide is a straight forward way to check if an optional argument was passed or not.
Is there currently a canonical way to do that? I guess I could use .call(...) with some lambda that sets a bool to true, but that seems quite verbose. I was thinking something like:
option("--foo").set_true(foo_passed) & value(foo)
Or a way to get a handle the "option object" and query it after command line parsing, something like foo_option.was_passed().
I would like to be able to parse a struct containing
std::optional<..>
fields. For example:The text was updated successfully, but these errors were encountered: