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 9
9
//
10
10
//===----------------------------------------------------------------------===//
11
11
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
12
19
@_implementationOnly import ArgumentParserToolInfo
13
20
@_implementationOnly import class Foundation. JSONEncoder
21
+ #endif
14
22
15
23
internal struct DumpHelpGenerator {
16
- var toolInfo : ToolInfoV0
24
+ private var toolInfo : ToolInfoV0
17
25
18
26
init ( _ type: ParsableArguments . Type ) {
19
27
self . init ( commandStack: [ type. asCommand] )
Original file line number Diff line number Diff line change 9
9
//
10
10
//===----------------------------------------------------------------------===//
11
11
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
12
19
@_implementationOnly import protocol Foundation. LocalizedError
13
20
@_implementationOnly import class Foundation. NSError
21
+ #endif
14
22
15
23
enum MessageInfo {
16
24
case help( text: String )
Original file line number Diff line number Diff line change 9
9
//
10
10
//===----------------------------------------------------------------------===//
11
11
12
+ #if swift(>=5.11)
13
+ internal import protocol Foundation. LocalizedError
14
+ #elseif swift(>=5.10)
15
+ import protocol Foundation. LocalizedError
16
+ #else
12
17
@_implementationOnly import protocol Foundation. LocalizedError
18
+ #endif
13
19
14
20
struct UsageGenerator {
15
21
var toolName : String
You can’t perform that action at this time.
0 commit comments