From 05eef90ac63b6d72da5041156a718ac589d5c8ad Mon Sep 17 00:00:00 2001 From: kykurniawan Date: Thu, 1 Aug 2024 02:21:39 +0800 Subject: [PATCH] fix: command not found message --- CommandRunner.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CommandRunner.cs b/CommandRunner.cs index 222b319..9a93a99 100644 --- a/CommandRunner.cs +++ b/CommandRunner.cs @@ -68,6 +68,11 @@ public static void RunWithCommands(this IHost host, string[] args) command.ExecuteAsync([.. arguments]).Wait(); return; } + else + { + Console.WriteLine($"Command '{options.Command}' not found."); + return; + } } catch (Exception ex) {