aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
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