412
}
413
private handleValidationAndGetResult(
415
>
commandHandler: CommandHandler,
416
>
innerArgv: Arguments | Promise<Arguments>,
417
>
currentContext: Context,
418
>
aliases: Dictionary<string[]>,
419
>
yargs: YargsInstance,
420
>
middlewares: Middleware[],
421
>
positionalMap: Dictionary<string[]>
422
>
) {
423
>
// we apply validation post-hoc, so that custom
424
>
// checks get passed populated positional arguments.
425
>
if (!yargs.getInternalMethods().getHasOutput()) {
426
const validation = yargs
427
.getInternalMethods()