I'm learning Node.js and for a lesson I'm following for my course, I'm working with yargs and after installing the package and trying to pass node app.js add --title="Things to buy" into my script, it keeps returning undefined. My expected output should be:
{
_: ['add'],
title: 'Things to buy',
'$0': 'app.js'
}
But no matter what it keeps returning undefined. I made sure I have the lastest version, I checked with my peers who followed the same video and theirs work but not mine esp after they mentioned they did the same as me, tried parse, reviewed my file tree and all fails. Please help!