1

I am trying to get the arguments passed through command line to my nodejs application. I found this topic and tied to use the same suggested method. In app.js this is my code

var task = require('./task');

const args = process.argv;
path = agrs[0];
console.log("path :"+ path);
task.start(path);

I get an error agrs is not defined

ssalc
  • 25
  • 6

0 Answers0