添加简单命令传入判断
This commit is contained in:
parent
3663113167
commit
e170c6e3b6
|
|
@ -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){
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue