Skip to content

Commit bf00048

Browse files
committed
Rename --scratch-path to --build-path
Resolves #662 rdar://101628335
1 parent f05ac4b commit bf00048

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/sourcekit-lsp/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ struct Main: ParsableCommand {
7373
)
7474
var buildConfiguration = BuildConfiguration.debug
7575

76-
@Option(help: "Specify build/cache directory")
77-
var buildPath: AbsolutePath?
76+
@Option(name: [.long, .customLong("build-path")], help: "Specify build/cache directory (--build-path option is deprecated, --scratch-path should be used instead)")
77+
var scratchPath: AbsolutePath?
7878

7979
@Option(
8080
name: .customLong("Xcc", withSingleDash: true),
@@ -145,7 +145,7 @@ struct Main: ParsableCommand {
145145
var serverOptions = SourceKitServer.Options()
146146

147147
serverOptions.buildSetup.configuration = buildConfiguration
148-
serverOptions.buildSetup.path = buildPath
148+
serverOptions.buildSetup.path = scratchPath
149149
serverOptions.buildSetup.flags.cCompilerFlags = buildFlagsCc
150150
serverOptions.buildSetup.flags.cxxCompilerFlags = buildFlagsCxx
151151
serverOptions.buildSetup.flags.linkerFlags = buildFlagsLinker

0 commit comments

Comments
 (0)