We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53da00d commit 02778e3Copy full SHA for 02778e3
Sources/Commander/Group.swift
@@ -48,6 +48,9 @@ open class Group : CommandType {
48
}
49
50
var commands = [SubCommand]()
51
+ public var commandNames: [String] {
52
+ return commands.map { $0.name }
53
+ }
54
55
// When set, allows you to override the default unknown command behaviour
56
public var unknownCommand: ((_ name: String, _ parser: ArgumentParser) throws -> ())?
0 commit comments