From 2c41ee9f4ab8351a89ed927c67e8a0696f404838 Mon Sep 17 00:00:00 2001 From: devedbox <862099730@qq.com> Date: Sat, 13 Oct 2018 21:18:09 +0800 Subject: [PATCH] fix: Fixs help commands's looking up --- Sources/Commander/Commands/Built-Ins/HelpCommand.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)