Skip to content

Commit 44f25f9

Browse files
committed
[SwiftTool] Rename dynamicSelf -> dynamicType
This was named wrongly
1 parent 02f5db6 commit 44f25f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Commands/SwiftTool.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ public class SwiftTool<Mode: Argument, OptionType: Options> {
6969
public init() {
7070
let args = Array(CommandLine.arguments.dropFirst())
7171
self.args = args
72-
let dynamicSelf = type(of: self)
72+
let dynamicType = type(of: self)
7373
do {
74-
(self.mode, self.options) = try dynamicSelf.parse(commandLineArguments: args)
74+
(self.mode, self.options) = try dynamicType.parse(commandLineArguments: args)
7575
// Honor chdir option is provided.
7676
if let dir = options.chdir {
7777
// FIXME: This should be an API which takes AbsolutePath and maybe
7878
// should be moved to file system APIs with currentWorkingDirectory.
7979
try chdir(dir.asString)
8080
}
8181
} catch {
82-
handle(error: error, usage: dynamicSelf.usage)
82+
handle(error: error, usage: dynamicType.usage)
8383
}
8484

8585
// Create local variables to use while finding build path to avoid capture self before init error.

0 commit comments

Comments
 (0)