diff options
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 2a2834b..e081fbc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,7 @@ import * as program from 'commander'; import tag from './tag/tag'; import scss from './tag/scss'; import index from './tag/index'; +import * as pkg from '../package.json'; async function main(tagName: string) { const name = tagName.toLocaleLowerCase(); @@ -17,10 +18,13 @@ async function main(tagName: string) { }; program - .version('1.0.0') + .version((<any> pkg).version) .arguments('<name>') .action(name => { main(name); }) + .action(() => { + console.log('No component name specified.'); + }) .usage('create-riot-component [name]') .parse(process.argv);
\ No newline at end of file |
