From a022bdb30d0d6c6cd43ebc79f5b886d23517fe66 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 22 Sep 2015 22:58:27 -0700 Subject: [PATCH] set default version to null to override commander built-in --- release/release | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release/release b/release/release index 3649ff893..bf7909c5b 100755 --- a/release/release +++ b/release/release @@ -584,7 +584,7 @@ program.command('create') .option('--image ', 'Image id') .option('--changelog ', 'Changelog') .option('--upgrade', 'Set the upgrade flag') - .option('--version ', 'Create the specified version') + .option('--version ', 'Create the specified version', null) .description('Create a new release') .action(createRelease); @@ -607,7 +607,7 @@ program.command('new') program.command('publish') .description('Publish latest staging version to production') - .option('--version ', 'Version to publish') + .option('--version ', 'Version to publish', null) .action(function (options) { stage(ENVIRONMENTS['staging'], ENVIRONMENTS['prod'], options.version); }); program.command('rerelease') @@ -622,7 +622,7 @@ program.command('revert') program.command('stage') .description('Stage latest dev version to staging') - .option('--version ', 'Version to publish') + .option('--version ', 'Version to publish', null) .action(function (options) { stage(ENVIRONMENTS['dev'], ENVIRONMENTS['staging'], options.version); }); program.command('sync')