UNPKG

673 BPlain TextView Raw
1import { helpFormatter } from './help';
2import { CliCommandDefinitionOption } from './types';
3
4export 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];