Skip to content

Commit ab5677a

Browse files
committed
Restore --build-path
This was removed in #5807 before projects had time to migrate. Restore this option until they do.
1 parent 7063c45 commit ab5677a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/CoreCommands/Options.swift

+8-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ public struct LocationOptions: ParsableArguments {
6767

6868
/// The custom .build directory, if provided.
6969
@Option(name: .customLong("scratch-path"), help: "Specify a custom scratch directory path (default .build)", completion: .directory)
70-
public var scratchDirectory: AbsolutePath?
70+
var _scratchDirectory: AbsolutePath?
71+
72+
@Option(name: .customLong("build-path"), help: .hidden)
73+
var _deprecated_buildPath: AbsolutePath?
74+
75+
var scratchDirectory: AbsolutePath? {
76+
self._scratchDirectory ?? self._deprecated_buildPath
77+
}
7178

7279
/// The path to the file containing multiroot package data. This is currently Xcode's workspace file.
7380
@Option(name: .customLong("multiroot-data-file"), help: .hidden, completion: .directory)

0 commit comments

Comments
 (0)