From 3a84e249d6096b0611aa88b98d07a7e2368648ee Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 3 Apr 2014 18:14:31 +0900 Subject: [PATCH] Make `stf local ` work again. --- lib/cli.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cli.js b/lib/cli.js index 747c9f2f..b49c806a 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -502,7 +502,8 @@ program , 'disable watching resources') .action(function() { var log = logger.createLogger('cli:local') - , options = cliutil.lastArg(arguments) + , args = arguments + , options = cliutil.lastArg(args) , procutil = require('./util/procutil') // Each forked process waits for signals to stop, and so we run over the @@ -553,7 +554,7 @@ program , '--name', options.provider , '--connect-sub', options.bindDevPub , '--connect-push', options.bindDevPull - ].concat(cliutil.allUnknownArgs(arguments))) + ].concat(cliutil.allUnknownArgs(args))) // auth-mock , procutil.fork(__filename, [