From 18e516bfab084e4baf1c56c56f0bef01c3d08625 Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Wed, 20 Apr 2016 01:27:50 +0300 Subject: [PATCH] Add help --- bin/now-remove | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bin/now-remove b/bin/now-remove index 8590d1b..1da370e 100755 --- a/bin/now-remove +++ b/bin/now-remove @@ -11,6 +11,25 @@ import { handleError, error } from '../lib/error'; const argv = minimist(process.argv.slice(2)); const deploymentId = argv._[0]; +// options +const help = () => { + console.log(` + 𝚫 now remove [deploymentId] + + Alias: rm + + Options: + + -h, --help output usage information + -d, --debug Debug mode [off] +`); +}; + +if (argv.h || argv.help) { + help(); + process.exit(0); +} + if (!deploymentId) { console.log(`${chalk.cyan('> No deployment id specified. You can see active deployments with `now ls`.')}`); process.exit(1);