From c5e966c1c1d3c47f33d09fb2aafd9291c467dafd Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 27 May 2016 15:46:08 -0700 Subject: [PATCH] now-remove: make consistent with `now-alias` --- bin/now-remove | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/now-remove b/bin/now-remove index cde5d0d..d4809aa 100755 --- a/bin/now-remove +++ b/bin/now-remove @@ -15,28 +15,28 @@ const deploymentId = argv._[0]; // options const help = () => { console.log(` - 𝚫 now remove [deploymentId] + ${chalk.bold('𝚫 now remove')} [deploymentId] - Options: + ${chalk.dim('Options:')} -h, --help output usage information -d, --debug Debug mode [off] - Alias: rm + ${chalk.dim('Examples:')} + + ${chalk.gray('–')} Remove a deployment identified by ${chalk.gray('`deploymentId`')}: + + ${chalk.cyan('$ now rm deploymentId')} + + ${chalk.dim('Alias:')} rm `); }; -if (argv.h || argv.help) { +if (argv.h || argv.help || !deploymentId) { help(); process.exit(0); } -if (!deploymentId) { - error('No deployment id specified. You can see active deployments with `now ls`.'); - help(); - process.exit(1); -} - // options const debug = argv.debug || argv.d; const apiUrl = argv.url || 'https://api.zeit.co';