Remove -endpoint flag
Created by: ryanslade
This change removes the -endpoint flag
It also ensures the following:
- Both env vars override the config file.
- If a config file exists, either zero or both env vars must be specified. It is an error if only one is specified. This is to avoid confusion; we never merge config from the file and env vars.