Skip to content

Commit 64b2350

Browse files
committed
[sourcekit-lsp] Update spelling of completion filtering options to double-dash
Change the following options to double-dash: --completion-max-results --completion-server-side-filtering This matches the behaviour on main branch, but without pulling in the change to use swift-argument-parser.
1 parent cfe3e60 commit 64b2350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/sourcekit-lsp/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func parseArguments() throws -> CommandLineOptions {
5151
let clangdOptions = parser.add(option: "-Xclangd", kind: [String].self, strategy: .oneByOne, usage: "Pass options to clangd command-line")
5252
let indexStorePath = parser.add(option: "-index-store-path", kind: PathArgument.self, usage: "Override index-store-path from the build system")
5353
let indexDatabasePath = parser.add(option: "-index-db-path", kind: PathArgument.self, usage: "Override index-database-path from the build system")
54-
let completionServerSideFiltering = parser.add(option: "-completion-server-side-filtering", kind: Bool.self, usage: "Whether to enable server-side filtering in code-completion")
55-
let completionMaxResults = parser.add(option: "-completion-max-results", kind: Int.self, usage: "When server-side filtering is enabled, the maximum number of results to return")
54+
let completionServerSideFiltering = parser.add(option: "--completion-server-side-filtering", kind: Bool.self, usage: "Whether to enable server-side filtering in code-completion")
55+
let completionMaxResults = parser.add(option: "--completion-max-results", kind: Int.self, usage: "When server-side filtering is enabled, the maximum number of results to return")
5656

5757
let parsedArguments = try parser.parse(arguments)
5858

0 commit comments

Comments
 (0)