itay / node-cover

Native JavaScript Code Coverage
http://www.cover.io
165 stars 17 forks source link

Arguments are not correctly passed to the executed file #34

Open floriancargoet opened 11 years ago

floriancargoet commented 11 years ago

Some arguments are passed to the executed file and some are not (and generate errors).

$ cat test.js
console.log(process.argv);
$ cover run test.js some arguments
[ 'node', '/tmp/options-test/test.js', 'some', 'arguments' ]
$ cover run test.js --some --arguments
error: unknown option `--some

commander is intercepting the arguments and exits the program since it doesn't recognize them.