support InitCmd, allowing optional config file for cmdline tools and test code