优化cmd模块