Skip to content

Commit

Permalink
[fix] Pass argv options properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed May 6, 2012
1 parent 44c2337 commit 4116f85
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ var help = [

var app = flatiron.app;

app.use(flatiron.plugins.cli, {
usage: help
});

var actions = [
'start',
'stop',
Expand Down Expand Up @@ -107,7 +103,10 @@ var argvOptions = cli.argvOptions = {
'plain': {boolean: true}
};

app.config.argv().env();
app.use(flatiron.plugins.cli, {
argv: argvOptions,
usage: help
});

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

Expand Down

0 comments on commit 4116f85

Please sign in to comment.