213
214
self.unknownCommands = function unknownCommands(argv) {
216
>
.getInternalMethods()
217
>
.getCommandInstance()
218
>
.getCommands();
219
>
const unknown: string[] = [];
220
>
const currentContext = yargs.getInternalMethods().getContext();
221
>
222
>
if (currentContext.commands.length > 0 || commandKeys.length > 0) {
223
>
argv._.slice(currentContext.commands.length).forEach(key => {
224
if (!commandKeys.includes('' + key)) {
225
unknown.push('' + key);
226
}
228
>
}
229
>
230
>
if (unknown.length > 0) {
231
usage.fail(
232
__n(