From c5da21e311e832590d702ae08349929fc1e38a1a Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 28 Dec 2017 14:33:55 +0200 Subject: Fix help output --- src/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/index.ts b/src/index.ts index e081fbc..0202d62 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import scss from './tag/scss'; import index from './tag/index'; import * as pkg from '../package.json'; -async function main(tagName: string) { +async function main(tagName: string): Promise { const name = tagName.toLocaleLowerCase(); console.log(`Creating component ${name}...`); @@ -23,8 +23,5 @@ program .action(name => { main(name); }) - .action(() => { - console.log('No component name specified.'); - }) - .usage('create-riot-component [name]') + .usage('[name]') .parse(process.argv); \ No newline at end of file -- cgit v1.3