Skip to content
Browse files

change variables from optimist to args for clarity

  • Loading branch information...
1 parent 6a04008 commit c0c42e7cb124ba3614e243dfe4c81a76ca81f53f @switzer switzer committed Apr 8, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 app.js
View
6 app.js
@@ -40,16 +40,16 @@ var express = require('express'),
RedisStore = require('connect-redis')(express);
// Parse arguments
-var optimist = require('yargs')
+var yargs = require('yargs')
.usage('Usage: $0 --config-file [file]')
.alias('c', 'config-file')
.alias('h', 'help')
.describe('c', 'Specify the config file location')
.default('c', './config.json');
-var argv = optimist.argv;
+var argv = yargs.argv;
if (argv.help) {
- optimist.showHelp();
+ yargs.showHelp();
process.exit(0);
}

0 comments on commit c0c42e7

Please sign in to comment.
Something went wrong with that request. Please try again.