[fea] gen config by options