How to use the iterations function from yargs
Find comprehensive JavaScript yargs.iterations code examples handpicked from public code repositorys.
44 45 46 47 48 49 50 51 52 53
var outdir = path.join(datadir, argv.id); while (fs.existsSync(path.join(outdir, i.toString()))) ++i; outdir = path.join(outdir, i.toString()); if (iterations > 0 && i <= argv.iterations) { var warmup = iterations > argv.iterations; run(url, outdir, warmup ? warmupTimeout : timeout, warmup, false).then(next); --iterations; } else { var report = { name: argv.site, ids: [], info: { url: url } };
0
0
3
yargs.argv is the most popular function in yargs (1012 examples)