aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2017-12-28 14:33:55 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2017-12-28 14:33:55 +0200
commitc5da21e311e832590d702ae08349929fc1e38a1a (patch)
tree022f1626ea025958207636f5beea6e2420de903b /src/index.ts
parente6895247b7dddeeea0109f5f8284bde044d30698 (diff)
Fix help outputmaster
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts7
1 files changed, 2 insertions, 5 deletions
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<void> {
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