deno.land / x / yargs@v17.6.0-deno / test / fixtures / no-require-main.js

no-require-main.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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);
yargs

Version Info

Tagged at
a year ago