Skip to content

Commit

Permalink
[fix] Make -v|--version work. Fixes #303.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Apr 21, 2013
1 parent 10fa40f commit 1a1ba32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ forever.Forever = forever.Monitor = require('forever-monitor').Monitor;
forever.Worker = require('./forever/worker').Worker;
forever.cli = require('./forever/cli');



//
// Expose version through `pkginfo`
//
Expand Down
4 changes: 4 additions & 0 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ cli.run = function () {
};

cli.start = function () {
if (app.argv.v || app.argv.version) {
return console.log('v' + forever.version);
}

//
// Check for --no-colors/--colors and --plain option
//
Expand Down

0 comments on commit 1a1ba32

Please sign in to comment.