Skip to content

Commit

Permalink
fix: Fixs help commands's looking up
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Oct 13, 2018
1 parent 76fd51e commit 2c41ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Commander/Commands/Built-Ins/HelpCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c41ee9

Please sign in to comment.