Daily commit
This commit is contained in:
parent
54a2d13e57
commit
083a2620d8
16
src/index.js
16
src/index.js
|
@ -105,4 +105,20 @@ let executeoption = async (option) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BODY */
|
/* BODY */
|
||||||
|
let commandLineUtility = () => {
|
||||||
|
console.log(process.argv)
|
||||||
|
if(process.argv.length==3){
|
||||||
|
const option = process.argv[2] // e.g., npm start 15 <-
|
||||||
|
const optionNum = Number(option)
|
||||||
|
if(!isNaN(optionNum)){
|
||||||
|
executeoption(optionNum)
|
||||||
|
}else if(option == "all"){
|
||||||
|
executeoption(15) // 15 = execute all fetchers
|
||||||
|
}else{
|
||||||
whattodo(whattodoMessage, executeoption)
|
whattodo(whattodoMessage, executeoption)
|
||||||
|
}
|
||||||
|
}else(
|
||||||
|
whattodo(whattodoMessage, executeoption)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
commandLineUtility()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user