Skip to content

Commit e170c6e

Browse files
committed
添加简单命令传入判断
1 parent 3663113 commit e170c6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎build/crawler.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ var param = process.argv.slice(2);
1010
var from_path = param[0];
1111
var to_path = param[1];
1212

13-
// CreatMarkdown(from_path,to_path)
13+
if(!from_path) return console.error("请输入请求参数!");
14+
if(!to_path) return console.error("请输入写入目标目录!");
15+
16+
CreatMarkdown(from_path,to_path)
1417

1518
function CreatMarkdown(from_path,to_path){
1619

0 commit comments

Comments
 (0)