Allow switching the operating mode of the server by cli argument