1 | // @flow
|
2 |
|
3 | import yargs from 'yargs';
|
4 |
|
5 | import * as start from './commands/start';
|
6 |
|
7 | process.on('uncaughtException', (err) => console.error(err));
|
8 | process.on('unhandledRejection', (err) => console.error(err));
|
9 |
|
10 | // eslint-disable-next-line no-unused-expressions
|
11 | yargs
|
12 | .usage('$0 <cmd> [args]')
|
13 | .command(start)
|
14 | .help('h')
|
15 | .argv;
|