Skip to content

Commit

Permalink
Set CLI defaults for strictSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Apr 15, 2016
1 parent cd3f488 commit ebea1d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

* **Dropped support for running on Node < 4.0.** (#319)

### Fixed

* `strict-ssl` (and by extension, `download.strictSSL`) defaults to `true`, as documented (#320)

### Deprecated

* `cache` is deprecated in favor of `download.cache` (#320)
Expand Down
15 changes: 14 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env node
var fs = require('fs')
var args = require('minimist')(process.argv.slice(2), {boolean: ['prune', 'asar', 'all', 'overwrite', 'strict-ssl', 'download.strictSSL']})
var args = require('minimist')(process.argv.slice(2), {
boolean: [
'prune',
'asar',
'all',
'overwrite',
'strict-ssl',
'download.strictSSL'
],
default: {
'strict-ssl': true,
'download.strictSSL': true
}
})
var packager = require('./')
var path = require('path')
var usage = fs.readFileSync(path.join(__dirname, 'usage.txt')).toString()
Expand Down

0 comments on commit ebea1d8

Please sign in to comment.