誠然,之前處理都是使用內(nèi)置的process.agrv ,這個(gè)能work,但是不好使,于是tj大神給寫了一個(gè),my god,完全的高大上:
1、安裝
2、option 解析
Options with commander are defined with the .option() method, also serving as documentation for the options. The example below parses args and options from process.argv, leaving remaining args as the program.args array which were not consumed by options.
Short flags may be passed as a single arg, for example -abc is equivalent to -a -b -c. Multi-word options such as “ 主站蜘蛛池模板: 宣恩县| 津南区| 碌曲县| 屯昌县| 临夏市| 鄂托克前旗| 正定县| 清镇市| 苍溪县| 皮山县| 西宁市| 桓台县| 兴化市| 永修县| 临潭县| 大石桥市| 天津市| 庆云县| 长海县| 治县。| 岳阳市| 合水县| 萨迦县| 元阳县| 宕昌县| 武山县| 双城市| 扶余县| 安国市| 康乐县| 巫溪县| 荔浦县| 岳阳县| 岱山县| 明光市| 囊谦县| 永嘉县| 南靖县| 颍上县| 四平市| 宁陕县|