Skip to content

Commit

Permalink
Merge pull request #672 from TrySound/yargs
Browse files Browse the repository at this point in the history
Use yargs
  • Loading branch information
carljm committed Feb 11, 2016
1 parent 64a097a commit 9c22139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/precompile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var precompile = require('../src/precompile').precompile;
var Environment = require('../src/environment').Environment;
var lib = require('../src/lib');

var optimist = require('optimist')
var yargs = require('yargs')

.usage('$0 [-f|--force] [-a|--filters <filters>] [-n|--name <name>] [-i|--include <regex>] [-x|--exclude <regex>] [-w|--wrapper <wrapper>] <path>')
.wrap(80)
Expand Down Expand Up @@ -42,10 +42,10 @@ var optimist = require('optimist')

.demand(1);

var argv = optimist.argv;
var argv = yargs.argv;

if (argv.help) {
optimist.showHelp();
yargs.showHelp();
process.exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"asap": "^2.0.3",
"chokidar": "^1.0.0",
"optimist": "*"
"yargs": "^3.32.0"
},
"browser": "./browser/nunjucks.js",
"devDependencies": {
Expand Down

0 comments on commit 9c22139

Please sign in to comment.