Skip to content

Commit

Permalink
Revert "Revert "[fix] Make -v|--version work. Fixes foreversd#303.""
Browse files Browse the repository at this point in the history
This reverts commit d08e401.
  • Loading branch information
meeDamian committed May 6, 2013
1 parent d08e401 commit e5ddc06
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 @@ -538,6 +538,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 e5ddc06

Please sign in to comment.