Add command line switch --production to not render swagger endpoints
It's called --production as we might add more things in the future that are disabled in production runs. We could also enable logging sensitive things like access token in non-production runs.
I'm not super happy. In general I think software should be in production mode. Debug/Developing features need to be enabled manually/explictly. And not the way otherway. What do you think about:
- reversing logic:
--development(enables swagger, default is off) -
--enable-swaggerinstead of using it--production/--development- I don't know if there are more things to come in the future that are turned on/off