Skip to content

Commit 738a001

Browse files
authored
Merge pull request #306 from MaxDesiatov/patch-1
Allow double dash for IndexStore-related CLI arguments
2 parents 3366391 + 8145889 commit 738a001

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ if getenv("SWIFTCI_USE_LOCAL_DEPS") == nil {
232232
.package(url: "https://github.com/apple/indexstore-db.git", .branch("master")),
233233
.package(url: "https://github.com/apple/swift-package-manager.git", .branch("master")),
234234
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("master")),
235-
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.3.0")),
235+
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.3.1")),
236236
]
237237
} else {
238238
package.dependencies += [

Sources/sourcekit-lsp/main.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ struct Main: ParsableCommand {
103103
var clangdOptions = [String]()
104104

105105
@Option(
106-
name: .customLong("index-store-path", withSingleDash: true),
106+
name: [.long, .customLong("index-store-path", withSingleDash: true)],
107107
help: "Override index-store-path from the build system"
108108
)
109109
var indexStorePath: AbsolutePath?
110110

111111
@Option(
112-
name: .customLong("index-db-path", withSingleDash: true),
112+
name: [.long, .customLong("index-db-path", withSingleDash: true)],
113113
help: "Override index-database-path from the build system"
114114
)
115-
var indexDatabasePath: AbsolutePath?
115+
var indexDBPath: AbsolutePath?
116116

117117
@Option(
118118
help: "Whether to enable server-side filtering in code-completion"
@@ -135,7 +135,7 @@ struct Main: ParsableCommand {
135135
serverOptions.buildSetup.flags.swiftCompilerFlags = buildFlagsSwift
136136
serverOptions.clangdOptions = clangdOptions
137137
serverOptions.indexOptions.indexStorePath = indexStorePath
138-
serverOptions.indexOptions.indexDatabasePath = indexDatabasePath
138+
serverOptions.indexOptions.indexDatabasePath = indexDBPath
139139
serverOptions.completionOptions.serverSideFiltering = completionServerSideFiltering
140140
serverOptions.completionOptions.maxResults = completionMaxResults
141141

0 commit comments

Comments
 (0)