I think it is a small task to separate main() and argc, argv from stubbed_server_configuration.cpp into a new file and write a new function to go with it.
auto mtf::configuration_from_commandline()
-> shared_ptr<mo::Configuration>
{
return std::make_shared<mo::DefaultConfiguration>(::argc, ::argv);
}
This can then be called both from StubbedServerConfiguration and any other places that need it.
I think it is a small task to separate main() and argc, argv from stubbed_ server_ configuration. cpp into a new file and write a new function to go with it.
auto mtf::configurat ion_from_ commandline( ) ptr<mo: :Configuration> shared< mo::DefaultConf iguration> (::argc, ::argv);
-> shared_
{
return std::make_
}
This can then be called both from StubbedServerCo nfiguration and any other places that need it.