File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Sources/ArgumentParser/Usage Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 99//
1010//===----------------------------------------------------------------------===//
1111
12+ #if swift(>=5.11)
13+ internal import ArgumentParserToolInfo
14+ internal import class Foundation. JSONEncoder
15+ #elseif swift(>=5.10)
16+ import ArgumentParserToolInfo
17+ import class Foundation. JSONEncoder
18+ #else
1219@_implementationOnly import ArgumentParserToolInfo
1320@_implementationOnly import class Foundation. JSONEncoder
21+ #endif
1422
1523internal struct DumpHelpGenerator {
16- var toolInfo : ToolInfoV0
24+ private var toolInfo : ToolInfoV0
1725
1826 init ( _ type: ParsableArguments . Type ) {
1927 self . init ( commandStack: [ type. asCommand] )
Original file line number Diff line number Diff line change 99//
1010//===----------------------------------------------------------------------===//
1111
12+ #if swift(>=5.11)
13+ internal import protocol Foundation. LocalizedError
14+ internal import class Foundation. NSError
15+ #elseif swift(>=5.10)
16+ import protocol Foundation. LocalizedError
17+ import class Foundation. NSError
18+ #else
1219@_implementationOnly import protocol Foundation. LocalizedError
1320@_implementationOnly import class Foundation. NSError
21+ #endif
1422
1523enum MessageInfo {
1624 case help( text: String )
Original file line number Diff line number Diff line change 99//
1010//===----------------------------------------------------------------------===//
1111
12+ #if swift(>=5.11)
13+ internal import protocol Foundation. LocalizedError
14+ #elseif swift(>=5.10)
15+ import protocol Foundation. LocalizedError
16+ #else
1217@_implementationOnly import protocol Foundation. LocalizedError
18+ #endif
1319
1420struct UsageGenerator {
1521 var toolName : String
You can’t perform that action at this time.
0 commit comments