Skip to content

Commit

Permalink
Changed --target option to be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
maximsmol committed Jan 25, 2015
1 parent d1f2c69 commit 5daea0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var opts = nomnom
help: "disable source map files (.map) generation"
})
.option("target", {
choices: ["ES6", "ES5"],
choices: ["ES6", "es6", "ES5", "es5"],
default: "ES5",
help: "target"
})
Expand Down Expand Up @@ -59,7 +59,7 @@ opts.files.forEach(function (fileName, fileIndex) {
var compilerOutput = spider.compile({
text: content,
fileName: baseName,
target: opts.target,
target: opts.target.toUpperCase(),
generateSourceMap: generateSourceMap,
modules: 'commonjs'
});
Expand Down

0 comments on commit 5daea0e

Please sign in to comment.