opentelemetry.io/gulp-src/_util.js

10 lines
288 B
JavaScript

const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers');
exports.taskArgs = () =>
yargs(hideBin(process.argv).slice(1))
.strict()
.help('info')
// To avoid "task did not complete" errors, prevent help option from exiting
.exitProcess(false);