Skip to content

Commit

Permalink
bin/phantomas.js: use optimist-config-file from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Feb 10, 2017
1 parent 854e861 commit 5e8ecc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 152 deletions.
5 changes: 4 additions & 1 deletion bin/phantomas.js
Expand Up @@ -12,7 +12,7 @@
var phantomas = require('..'),
async = require('async'),
debug = require('debug')('phantomas:cli'),
program = require('../lib/optimist-config-file'),
program = require('optimist-config-file'),
ProgressBar = require('progress'),
options = {},
runs,
Expand Down Expand Up @@ -83,6 +83,9 @@ program
// handle --config (issue #209)
program.setConfigFile('config');

// handle env variables (issue #685)
program.setReplacementVars(process.env);

// parse it
options = program.parse(process.argv);

Expand Down
151 changes: 0 additions & 151 deletions lib/optimist-config-file.js

This file was deleted.

0 comments on commit 5e8ecc0

Please sign in to comment.