Skip to content

Commit 4fb1a8e

Browse files
authored
Allow double dash for IndexStore-related CLI arguments
This is possible thanks to the fix in Argument Parser 0.3.1.
1 parent 3366391 commit 4fb1a8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)