Skip to content

Commit

Permalink
[minor] Dont use optimist directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook authored and AvianFlu committed Mar 6, 2012
1 parent cda371d commit 2d7d462
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ var actions = [
'cleanlogs'
];

app.config.argv(argvOptions).env();

var reserved = ['root', 'pidPath'];

//
Expand Down Expand Up @@ -223,7 +221,7 @@ app.cmd('cleanlogs', cli.cleanLogs = function () {
// process.
//
app.cmd(/start (.+)/, cli.startDaemon = function () {
var file = require('optimist').argv._[1],
var file = app.argv._[1],
options = getOptions(file);

forever.log.info('Forever processing file: ' + file.grey);
Expand Down

0 comments on commit 2d7d462

Please sign in to comment.