diff --git a/Sources/Commander/Commands/Built-Ins/HelpCommand.swift b/Sources/Commander/Commands/Built-Ins/HelpCommand.swift index f0dc259..9f74945 100644 --- a/Sources/Commander/Commands/Built-Ins/HelpCommand.swift +++ b/Sources/Commander/Commands/Built-Ins/HelpCommand.swift @@ -151,7 +151,7 @@ internal struct HelpCommand: CommandRepresentable { } else { var unrecognizedCommand = [String]() let commands = options.arguments.compactMap { arg -> AnyCommandRepresentable.Type? in - if let command = Commander.commands.first(where: { $0.symbol == arg }) { + if let command = runningCommands.first(where: { $0.symbol == arg }) { return command } else { unrecognizedCommand.append(arg)