From 22d5789d9e66a36991be56c10ffa7cefc4b94ea1 Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Thu, 19 Dec 2013 12:43:43 +0400 Subject: [PATCH] commander: fixed test --- commander/commander-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commander/commander-tests.ts b/commander/commander-tests.ts index eff20f28d..495426edd 100644 --- a/commander/commander-tests.ts +++ b/commander/commander-tests.ts @@ -18,7 +18,7 @@ program program .command('setup [env]') .description('run setup commands for all envs') - .action(function (env) { + .action(function (env?) { env = env || 'all'; console.log('setup for %s env(s)', env); }); @@ -27,7 +27,7 @@ program // $ deploy production program .command('*') - .action(function (env) { + .action(function (env?) { console.log('deploying "%s"', env); });