An action used to store a list. More...
Public Member Functions | |
template<typename Action > | |
append (Action action) | |
Container | operator() (const std::string &key, const std::string &value) |
The operator doing the heavy lifting. More... | |
An action used to store a list. Every time the argument is called, it is parsed to the specific type using the action provided. This should not be used directly, instead it is used in conjunction with optparse::compose factory function.
Container | The internal container to hold the list on. |
Definition at line 190 of file actions.hpp.
|
inline |
The operator doing the heavy lifting. The arguments are delegated to the action provided. The result of the parsing is added to a list keeping track of the elements. The result is inserted to the container by calling c.insert(c.end(), action(key, value))
. The container is returned and move semantics take over from then.
key | The key of the command line argument. |
value | The value of the command line option. |
Definition at line 212 of file actions.hpp.