Skip to content

Commit

Permalink
[refactor] Better option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Nov 23, 2011
1 parent dde31b7 commit 4d3958e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,8 @@ function checkColumn(name) {
// `forever.startDaemon`
//
function getOptions(file) {
var options = {};
//
// First isolate options which should be passed to file
//
options.options = process.argv.splice(process.argv.indexOf(file) + 1);

//
// Now we have to force optimist to reparse command line options because
// we've removed some before.
//
app.config.system.loadArgv();

var o = [
var options = {},
o = [
'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'appendLog',
'silent', 'max', 'command', 'path', 'spinSleepTime', 'sourceDir',
'uid'
Expand Down

0 comments on commit 4d3958e

Please sign in to comment.