UNPKG

sonarqube-scanner

Version:
32 lines (31 loc) 1.24 kB
"use strict"; /* * sonar-scanner-npm * Copyright (C) SonarSource Sàrl * mailto:info AT sonarsource DOT com * * You can redistribute and/or modify this program under the terms of * the Sonar Source-Available License Version 1, as published by SonarSource Sàrl. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the Sonar Source-Available License for more details. * * You should have received a copy of the Sonar Source-Available License * along with this program; if not, see https://sonarsource.com/license/ssal/ */ Object.defineProperty(exports, "__esModule", { value: true }); const scan_1 = require("./scan"); const commander_1 = require("commander"); const version_1 = require("./version"); commander_1.program .option('-D, --define <property=value...>', 'Define property') .version(version_1.version, '-v, --version', 'Display version information') .option('-X, --debug', 'Produce execution debug output'); function parseArgs() { return commander_1.program.parse().opts(); } (0, scan_1.scan)({}, parseArgs()).catch(() => { process.exitCode = 1; });