deno.land / x / yargs@v17.6.0-deno / test / fixtures / no-require-main.js
1234567891011121314151617#!/usr/bin/env node/* eslint-disable node/shebang *//* eslint-disable no-undef */'use strict';
// for some unknown reason, a test environment has decided to omit require.maindelete require.main;
const parser = require('../../')(process.argv.slice(2), undefined, require);
console.log( parser.parserConfiguration({ 'dot-notation': false, 'boolean-negation': false, }).argv);
Version Info