From e5ddc06370b7240ac07f47adcf36c1617ccc5852 Mon Sep 17 00:00:00 2001 From: Maurycy Damian Wasilewski Date: Mon, 6 May 2013 13:08:38 +0200 Subject: [PATCH] Revert "Revert "[fix] Make `-v|--version` work. Fixes #303."" This reverts commit d08e4013359a391821a6fc3a4fcdb528b67382ec. --- lib/forever.js | 2 -- lib/forever/cli.js | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/forever.js b/lib/forever.js index 4f6464d6..dddc3df8 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -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` // diff --git a/lib/forever/cli.js b/lib/forever/cli.js index ca495c14..01107b20 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -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 //