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
Depends what you want exactly. test.cxx covers most use. If you want a single argument to parse into a map or a list, you can use a custom reader like here. If you want a flag to parse into a list, you can use a ValueFlagList. There are also appropriate Positionals, Map types, and other such things.
If what you want is to just parse the arguments and get the results as a single Map or list of (option, value) pairs, then no, this will not do that directly; it's not built to. You'd have to specify your options and load your structure manually. If you wanted to do something like that, I'd strongly suggest a library that already works by loading up a map, like Boost's program_options. Anything you do to make this library do that would be a hack, and pretty antithetical to the design of this library.
Is there a way to get a
Map
orList<pair>
with the parsed values so that you can use it in another class to process the params..?I can't find it..
The text was updated successfully, but these errors were encountered: