Adding a config-generate option to export the config and then exit