Daily commit

This commit is contained in:
NunoSempere 2021-04-04 18:37:04 +02:00
parent 54a2d13e57
commit 083a2620d8

View File

@ -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()