Skip to content

Commit a4c7688

Browse files
authored
Merge pull request #670 from ahoppen/ahoppen/scratch-path
Rename --scratch-path to --build-path
2 parents 595acfa + bf00048 commit a4c7688

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)