deno.land / x / yargs@v17.6.0-deno / test / fixtures / issue-497.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env node/* eslint-disable node/shebang */
/* eslint-disable no-undef */// pretend we are a TTYprocess.stdout.isTTY = true;process.stderr.isTTY = true;
const yargs = require('../../');const y = yargs .command('download <url> <files..>', 'make a get HTTP request') .help();
for (let i = 0; i < 1000; i++) { yargs.option('o' + i, { describe: 'option ' + i, });}
y.parse();
console.log('never get here');
yargs

Version Info

Tagged at
a year ago