誠然,之前處理都是使用內(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 “ 主站蜘蛛池模板: 白玉县| 长宁县| 大余县| 崇左市| 汤阴县| 天气| 礼泉县| 阳谷县| 金阳县| 凌云县| 曲水县| 清镇市| 施秉县| 泗水县| 永春县| 和龙市| 农安县| 政和县| 肃宁县| 清镇市| 鸡东县| 于田县| 兖州市| 南投市| 渑池县| 辉南县| 简阳市| 阿拉善右旗| 娄底市| 瓦房店市| 台前县| 咸阳市| 临城县| 海兴县| 河北区| 荃湾区| 台北县| 九龙坡区| 高青县| 德惠市| 濮阳市|