Permalink
Browse files

[minor] Dont use optimist directly

  • Loading branch information...
1 parent cda371d commit 2d7d4625b6d7c2d12a64df629f4586bc747d5cb6 @jfhbrook jfhbrook committed with AvianFlu Mar 6, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/forever/cli.js
View
4 lib/forever/cli.js
@@ -107,8 +107,6 @@ var actions = [
'cleanlogs'
];
-app.config.argv(argvOptions).env();
-
var reserved = ['root', 'pidPath'];
//
@@ -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);

0 comments on commit 2d7d462

Please sign in to comment.