27
// arguments were provided, i.e., '_'.
28
self.nonOptionCount = function nonOptionCount(argv) {
29
>
const demandedCommands = yargs.getDemandedCommands();
validation.ts
30
>
// don't count currently executing commands
31
>
const positionalCount =
32
>
argv._.length + (argv['--'] ? argv['--'].length : 0);
33
>
const _s =
34
>
positionalCount - yargs.getInternalMethods().getContext().commands.length;
35
>
36
>
if (
37
>
demandedCommands._ &&
38
(_s < demandedCommands._.min || _s > demandedCommands._.max)
40
if (_s < demandedCommands._.min) {
41
if (demandedCommands._.minMsg !== undefined) {