mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/jibo-cli.git
synced 2026-06-15 21:16:09 +00:00
19 lines
342 B
JavaScript
Executable File
19 lines
342 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
|
|
'use strict';
|
|
|
|
var download = require('./');
|
|
var minimist = require('minimist');
|
|
|
|
var opts = minimist(process.argv.slice(2));
|
|
|
|
if (opts['strict-ssl'] === false) {
|
|
opts.strictSSL = false;
|
|
}
|
|
|
|
download(opts, function (err, zipPath) {
|
|
if (err) throw err;
|
|
console.log('Downloaded zip:', zipPath);
|
|
process.exit(0);
|
|
}); |