Description
Using the strict option in combination with an async middleware, which is applied before the validation, results in an unknown command error. Removing the async from the middleware, removing the strict or applying the middleware after the validation produces the expected result (no error).
Minimal example
The following code fails with the error Unknown command: test, although I would expect it to run without error:
Yargs
.strict(true)
.middleware(async () => {}, true)
.command("test", false, () => {}, () => {})
.parseAsync(['test']);