Skip to content

Commit

Permalink
add support to pass through flags such as --debug-brk=1234. Closes #852
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 22, 2013
1 parent 14767bd commit a4e19d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/mocha
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
var spawn = require('child_process').spawn
, args = [ __dirname + '/_mocha' ];

process.argv.slice(2).forEach(function (arg) {
switch (arg) {
process.argv.slice(2).forEach(function(arg){
var flag = arg.split('=')[0];

switch (flag) {
case '-d':
args.unshift('--debug');
break;
Expand Down

0 comments on commit a4e19d3

Please sign in to comment.