Comparing version 1.0.2 to 1.1.0
@@ -1,14 +0,21 @@ | ||
var parse = require('parsec') | ||
var parse = require('minimist') | ||
module.exports = function () { | ||
return parse( | ||
['f', 'file', {default: '.'}], | ||
'list', | ||
'help', | ||
'version', | ||
['_', 'tasks'], // @todo Catch all tasks, only reads first | ||
function (key) { | ||
throw new Error({code: 'UNKNOWN_OPTION', key: key}) | ||
return parse(process.argv.slice(2), { | ||
default: { | ||
file: '.' | ||
}, | ||
alias: { | ||
v: 'version', | ||
h: 'help', | ||
l: 'list', | ||
f: 'file', | ||
_: 'tasks' | ||
}, | ||
unknown: function (key) { | ||
if (key.slice(0, 1) === '-') { | ||
throw new Error({code: 'UNKNOWN_OPTION', key: key}) | ||
} | ||
} | ||
) | ||
}) | ||
} |
{ | ||
"name": "fly", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Modern Build System", | ||
@@ -38,4 +38,4 @@ "license": "MIT", | ||
"mkdirp": "^0.5.1", | ||
"minimist": "^1.2.0", | ||
"object-assign": "^4.0.1", | ||
"parsec": "^1.3.0", | ||
"prettyjson": "^1.1.2", | ||
@@ -42,0 +42,0 @@ "rimraf": "^2.4.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53385
871
+ Addedminimist@^1.2.0
- Removedparsec@^1.3.0
- Removedbabel-runtime@5.8.38(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedparsec@1.5.3(transitive)