diff --git a/modules/jc/mod.nu b/modules/jc/mod.nu index 4e8a497..2a1241a 100644 --- a/modules/jc/mod.nu +++ b/modules/jc/mod.nu @@ -1,4 +1,4 @@ -def --env "nu-complete jc" [] { +def --env "nu-complete jc" [commandline: string] { try { let about = ^jc --about | from json @@ -30,7 +30,11 @@ def --env "nu-complete jc" [] { } | flatten - $options ++ $inherent ++ $magic + $magic ++ if ($commandline | str ends-with "-") { + $options ++ $inherent + } else { + [] + } } catch { [] }