Skip to content

Commit 07090e6

Browse files
committed
Fix another example for Swift 6 mode
1 parent 7d0cc17 commit 07090e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/command-line-client-example/Sources/CommandLineClient/CommandLineClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import Foundation
1717
import ArgumentParser
1818

1919
@main struct CommandLineClient: AsyncParsableCommand {
20-
static var configuration: CommandConfiguration = .init(
20+
static let configuration: CommandConfiguration = .init(
2121
commandName: "CommandLineClient",
2222
subcommands: [GreetCommand.self]
2323
)
2424
}
2525

2626
struct GreetCommand: AsyncParsableCommand {
2727

28-
static var configuration: CommandConfiguration = .init(commandName: "greet")
28+
static let configuration: CommandConfiguration = .init(commandName: "greet")
2929

3030
@Option var name: String
3131

0 commit comments

Comments
 (0)