Skip to content

Commit

Permalink
Merge pull request #1180 from TrySound/yargs
Browse files Browse the repository at this point in the history
Use yargs
  • Loading branch information
kpdecker committed Mar 12, 2016
2 parents 768ddbd + 0757843 commit 6b64480
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/handlebars
@@ -1,6 +1,6 @@
#!/usr/bin/env node

var optimist = require('optimist')
var yargs = require('yargs')
.usage('Precompile handlebar templates.\nUsage: $0 [template|directory]...', {
'f': {
'type': 'string',
Expand Down Expand Up @@ -110,7 +110,7 @@ var optimist = require('optimist')
});


var argv = optimist.argv;
var argv = yargs.argv;
argv.files = argv._;
delete argv._;

Expand All @@ -121,7 +121,7 @@ Precompiler.loadTemplates(argv, function(err, opts) {
}

if (opts.help || (!opts.templates.length && !opts.version)) {
optimist.showHelp();
yargs.showHelp();
} else {
Precompiler.cli(opts);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -22,8 +22,8 @@
},
"dependencies": {
"async": "^1.4.0",
"optimist": "^0.6.1",
"source-map": "^0.4.4"
"source-map": "^0.4.4",
"yargs": "^3.32.0"
},
"optionalDependencies": {
"uglify-js": "^2.6"
Expand Down

0 comments on commit 6b64480

Please sign in to comment.