Commit b82ff29c authored by Dominik Charousset's avatar Dominik Charousset

Store remaining arguments in actor system config

parent c704e2ee
...@@ -104,6 +104,9 @@ public: ...@@ -104,6 +104,9 @@ public:
return *this; return *this;
} }
/// Stores CLI arguments that were not consumed by CAF.
message args_remainder;
/// Sets the parameter `name` to `val`. /// Sets the parameter `name` to `val`.
using config_value = variant<std::string, double, int64_t, bool, atom_value>; using config_value = variant<std::string, double, int64_t, bool, atom_value>;
......
...@@ -248,6 +248,7 @@ actor_system_config::actor_system_config(int argc, char** argv) ...@@ -248,6 +248,7 @@ actor_system_config::actor_system_config(int argc, char** argv)
<< "enable-automatic-connections=" << "enable-automatic-connections="
<< deep_to_string(middleman_enable_automatic_connections) << endl; << deep_to_string(middleman_enable_automatic_connections) << endl;
} }
args_remainder = std::move(res.remainder);
} }
actor_system_config& actor_system_config&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment