import { IOp as IOp_, getCmdOp } from '../../yayaluoya-tool/node/getCmdOp'; /** * 命令行选项 */ export interface IOp extends IOp_ { /** 帮助 */ help: boolean; /** 项目路径 */ projectPath: string; /** 初始化 */ init: boolean; /** 配置文件 */ config: string; /** 测试配置文件 */ debugConfig: string; /** 项目key列表 */ keys: string; /** 选择 */ select: boolean; /** 演示,就是看下效果,不上传 */ demo: boolean; } /** * 获取命令行选项 */ export function getOp() { return getCmdOp((program) => { program .option('-h --help') .option('-pp --project-path ') .option('-i --init') .option('-c --config ') .option('-dc --debug-config [path]') .option('-k --keys ') .option('-s --select') .option('-d --demo'); }); }