Skip to content

Commit

Permalink
[fix] Make --help work
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Nov 23, 2011
1 parent 58c251f commit 1a04002
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ var argvOptions = {
'max': {alias: 'm'},
'outFile': {alias: 'o'},
'path': {alias: 'p'},
'help': {alias: 'h'},
'silent': {alias: 's', boolean: true},
'verbose': {alias: 'v', boolean: true},
'watch': {alias: 'w', boolean: true},
Expand Down Expand Up @@ -452,6 +453,9 @@ app.cmd(/(.+)/, cli.start = function (file) {

cli.startCLI = function () {
app.init(function () {
if (app.config.get('help')) {
return util.puts(help.join('\n'));
}
app.start();
});
};
Expand Down

0 comments on commit 1a04002

Please sign in to comment.