Skip to content

Commit

Permalink
split modules to skip into a list in CLI for #57
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 25, 2017
1 parent 5178425 commit 3eeb370
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,10 @@ if (is.string(program.module)) {
la(is.array(program.module), 'expected list of modules', program.module)
}

if (is.string(program.without)) {
program.without = program.without.split(',').map(_.trim)
la(is.array(program.without),
'expected list of modules to skip in --without', program.without)
}

module.exports = program

0 comments on commit 3eeb370

Please sign in to comment.