fix boolean flags for command line

This commit is contained in:
Igor Klopov 2016-10-07 20:41:18 +03:00
parent 5331250087
commit 2466336ae9

View File

@ -6,7 +6,8 @@ import { need } from './index.js';
async function main () {
const argv = minimist(process.argv.slice(2), {
string: [ 'n', 'p', 'a', 'f', 'b' ]
boolean: [ 'f', 'b' ],
string: [ 'n', 'p', 'a' ]
});
const nodeRange = argv.n || argv._.shift();
const platform = argv.p || argv._.shift();