Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed cli

  • Loading branch information...
commit f97c9584279a4c8578117ca474ede5d2d987ba50 1 parent 0c779fb
@indutny authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 run
View
5 run
@@ -4,9 +4,10 @@
* Pseudo-cli
*/
var tracker = require('./lib/tracker'),
+ fs = require('fs'),
argv = require('optimist')
.usage('Usage: $0 --config config.json')
- .demand('config')
+ .demand(['config'])
.argv;
-tracker(JSON.parse(fs.readFileSync(argv.config)));
+tracker(JSON.parse(fs.readFileSync('./' + (argv.config))));
Please sign in to comment.
Something went wrong with that request. Please try again.