UNPKG

508 BJavaScriptView Raw
1#!/usr/bin/env node
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'use strict'
10
11const verbose = process.argv.indexOf('--verbose') !== -1
12const insane = process.argv.indexOf('--insane') !== -1
13
14process.on('unhandledRejection', r => console.log(r))
15
16if (verbose || insane) {
17 process.env.GH_VERBOSE = 'true'
18}
19
20if (insane) {
21 process.env.GH_VERBOSE_INSANE = 'true'
22}
23
24require('../lib/cmd.js').run()