1 | import { helpFormatter } from './help';
|
2 | import { CliCommandDefinitionOption } from './types';
|
3 |
|
4 | export const internalOptions: CliCommandDefinitionOption[] = [
|
5 | {
|
6 | name: 'help',
|
7 | flag: 'h',
|
8 | description: 'Display help',
|
9 | commandHandler: parsed => {
|
10 | // tslint:disable-next-line: no-console
|
11 | console.log(helpFormatter(parsed));
|
12 | },
|
13 | },
|
14 | {
|
15 | name: 'version',
|
16 | flag: '-v',
|
17 | description: 'Display version',
|
18 | commandHandler: parsed => {
|
19 | // tslint:disable-next-line: no-console
|
20 | console.log(`Version ${parsed.version}`);
|
21 | },
|
22 | },
|
23 | ];
|