Skip to content

Commit

Permalink
-i for ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Nov 3, 2011
1 parent 16fa232 commit ad7226c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/cli.js
Expand Up @@ -22,6 +22,10 @@ var argv = require('optimist')
alias : 'e',
desc : 'An entry point of your app'
})
.option('ignore', {
alias : 'i',
desc : 'Ignore a file'
})
.option('alias', {
alias : 'a',
desc : 'Register an alias with a colon separator: "to:from"\n'
Expand Down Expand Up @@ -68,6 +72,7 @@ if (argv.noprelude || argv.prelude === false) {
bundle.files = [];
bundle.prepends = [];
}
if (argv.ignore) bundle.ignore(argv.ignore);

([].concat(argv.plugin || [])).forEach(function (plugin) {
if (plugin.match(/:/)) {
Expand Down

0 comments on commit ad7226c

Please sign in to comment.