From a26a2e3762e24badeb0aee1eaee0d43318fe108c Mon Sep 17 00:00:00 2001 From: Julien Vanier Date: Wed, 22 May 2024 12:03:33 -0400 Subject: [PATCH] Throw an error when command is not found --- src/app/cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/cli.js b/src/app/cli.js index 2e52b30ac..525636b03 100644 --- a/src/app/cli.js +++ b/src/app/cli.js @@ -146,6 +146,8 @@ module.exports = class CLI { throw argv.clierror; } else if (argv.clicommand){ await argv.clicommand.exec(argv); + } else { + throw commandProcessor.errors.unknownCommandError(args, null); } }