File tree 1 file changed +3
-3
lines changed
Sources/Commander/Commands
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ internal struct CommandDescriber {
50
50
self . intents = intents
51
51
}
52
52
53
- internal func describe( _ commander: Commander . Type ) -> String {
54
- let commandsSymbols = commander . allCommands . map { ( $0. symbol, $0. usage) }
53
+ internal func describe( commander usage : String , commands : [ AnyCommandRepresentable . Type ] ) -> String {
54
+ let commandsSymbols = commands . map { ( $0. symbol, $0. usage) }
55
55
56
56
let count = commandsSymbols. reduce ( 0 ) { max ( $0, $1. 0 . count) }
57
57
let alignment = String ( repeating: " " , count: count)
@@ -61,7 +61,7 @@ internal struct CommandDescriber {
61
61
\( returns ( 0 ) )
62
62
\( intents ( 1 ) ) $ \( path) COMMAND
63
63
\( returns ( 0 ) )
64
- \( intents ( 2 ) ) \( Commander . usage)
64
+ \( intents ( 2 ) ) \( usage)
65
65
\( returns ( 0 ) )
66
66
Commands:
67
67
\( returns ( 0 ) )
You can’t perform that action at this time.
0 commit comments