AyeSpy
AyeSpy copied to clipboard
Handle bad input from cli better
Running
node ./lib/bin/run.js snap --browser chrome--config e2eTests/chrome/snap/snapConfig.json
results in
info ayespy Logger Log level is info
ERR! [run] : ☠️️️️️️️ ☠️ ️️️️️️☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️ ERROR FOUND ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
at assertPath (path.js:28:11)
at Object.resolve (path.js:1179:7)
at Command._commander2.default.version.command.option.option.option.option.action (/Users/matthewlowry/dev/news/AyeSpy/lib/bin/run.js:66:43)
at Command.listener (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:315:8)
at Command.emit (events.js:159:13)
at Command.parseArgs (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:651:12)
at Command.parse (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:474:21)
at Object.<anonymous> (/Users/matthewlowry/dev/news/AyeSpy/lib/bin/run.js:148:21)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
not great