From 19d24fd3531f9e404e0eaa1797a073f0934c712c Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Sat, 15 Jun 2024 12:25:46 -0400 Subject: [PATCH] Return an empty list when no help --find results are found --- crates/nu-std/std/help.nu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/nu-std/std/help.nu b/crates/nu-std/std/help.nu index df6c4c6ca6..953eb302c9 100644 --- a/crates/nu-std/std/help.nu +++ b/crates/nu-std/std/help.nu @@ -771,6 +771,11 @@ You can also learn more at (ansi default_italic)(ansi light_cyan_underline)https let modules = (try { modules $target_item --find $find }) if not ($modules | is-empty) { return $modules } + + if ($find | is-not-empty) { + print -e $"No help results found mentioning: ($find)" + return [] + } let span = (metadata $item | get span) error make {