Getting value of remaining options/arguments #771
Unanswered
the-risk-taker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This was asked in #715 but wasn't explicitly answered if that is possible.
So, my problem is concerning the fact that I have a list of known arguments (passed from command line or config file) and many more unknown arguments (passed from config file) which I need to pass through to
add
functions.Let's say I have functions:
And I have similar program and config file to those from: #715 (reply in thread) and as the result I want to get:
So at the end I would like to get list of strings like
kafka.options.A = 360
which I could then split into astring
and avalue
and use for example like:add("kafka.options.A", 360)
, or at best, get a vector of pairs:vector<string, std::variant<int, bool, string>>
which I could easily pass toadd
.Is that somehow possible in CLI11?
Beta Was this translation helpful? Give feedback.
All reactions