From e170c6e3b60778e5c995e5f54d8df9fbbf2e0715 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 28 Nov 2016 00:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=80=E5=8D=95=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E4=BC=A0=E5=85=A5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/crawler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/crawler.js b/build/crawler.js index be86da80e6..07c67a6099 100644 --- a/build/crawler.js +++ b/build/crawler.js @@ -10,7 +10,10 @@ var param = process.argv.slice(2); var from_path = param[0]; var to_path = param[1]; -// CreatMarkdown(from_path,to_path) +if(!from_path) return console.error("请输入请求参数!"); +if(!to_path) return console.error("请输入写入目标目录!"); + +CreatMarkdown(from_path,to_path) function CreatMarkdown(from_path,to_path){