1 |
|
2 |
|
3 | /**
|
4 | * © 2013 Liferay, Inc. <https://liferay.com> and Node GH contributors
|
5 | * (see file: CONTRIBUTORS)
|
6 | * SPDX-License-Identifier: BSD-3-Clause
|
7 | */
|
8 |
|
9 |
|
10 |
|
11 | const verbose = process.argv.indexOf('--verbose') !== -1
|
12 | const insane = process.argv.indexOf('--insane') !== -1
|
13 |
|
14 | process.on('unhandledRejection', r => console.log(r))
|
15 |
|
16 | if (verbose || insane) {
|
17 | process.env.GH_VERBOSE = 'true'
|
18 | }
|
19 |
|
20 | if (insane) {
|
21 | process.env.GH_VERBOSE_INSANE = 'true'
|
22 | }
|
23 |
|
24 | require('../lib/cmd.js').run()
|