From dc92b119cef05c4fe609496d46c69ad4108efca7 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Tue, 19 Apr 2016 20:28:43 +0900 Subject: [PATCH] add help for now-list --- bin/now-list | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bin/now-list b/bin/now-list index e724fd6..019f65a 100755 --- a/bin/now-list +++ b/bin/now-list @@ -11,6 +11,24 @@ import * as cfg from '../lib/cfg'; import { handleError, error } from '../lib/error'; const argv = minimist(process.argv.slice(2)); +const help = () => { + console.log(` + 𝚫 now list [app] + + Alias: ls + + Options: + + -h, --help output usage information + -d, --debug Debug mode [off] +`); +}; + +if (argv.h || argv.help) { + help(); + process.exit(0); +} + const app = argv._[0]; // options