Skip to content

Commit

Permalink
fix(cli): properly parse abbreviated args
Browse files Browse the repository at this point in the history
Correct typo in error message
  • Loading branch information
jimwhitelaw authored and davidnpma committed Dec 21, 2016
1 parent 81f2f24 commit d1af61e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/ios-icon-resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var abbrev = require('abbrev')
var minimist = require('minimist')

var argv = minimist(process.argv.slice(2), abbrev('help', 'input', 'output', 'version'))
var argv = minimist(process.argv.slice(2), {alias: abbrev('help', 'input', 'output', 'version')})
var pkg = require('../package.json')
var resize = require('../')

Expand All @@ -29,7 +29,8 @@ function cli (argv) {
return resize(argv.input, argv.output)
}

console.error('Please specify an input icon file witht the `-i` option.')
console.error('Please specify an input icon file with the `-i` option.')

}

cli(argv)

0 comments on commit d1af61e

Please sign in to comment.