This should be possible to solve since Mir revision 1069.
You can override DefaultServerConfiguration::parse_options() and parse the arguments yourself without throwing an exception. You would need to copy some code from src/server/default_server_configuration.cpp to do this and keep the environment parsing.
It's not clear to me if the API should be easier than this however.
This should be possible to solve since Mir revision 1069.
You can override DefaultServerCo nfiguration: :parse_ options( ) and parse the arguments yourself without throwing an exception. You would need to copy some code from src/server/ default_ server_ configuration. cpp to do this and keep the environment parsing.
It's not clear to me if the API should be easier than this however.