An action used to parse a list of values. More...
Public Member Functions | |
store_list (Action action) | |
Constructs a store_list from an action. | |
Container | operator() (const std::string &key, const std::string &value) const |
The operator that does the heavy lifting. More... | |
An action used to parse a list of values. The parsing is done through continuous concatenation of the values parsed with the action. By default, the action used to parse and retrieve the values is optparse::store.
Container | The internal container to hold the list on. |
Action | The action used to parse the values. Defaults to store. |
Definition at line 146 of file actions.hpp.
|
inline |
The operator that does the heavy lifting. The values are retrieved as if splitting by the newline character, `'
'`. They are inserted into the container as if using c.insert(c.back(), action(key, split_value))
key | The key of the command line option. |
value | The value of the command line option, delimited by newlines. |
Definition at line 167 of file actions.hpp.