We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 893f014 + 3b87961 commit a241032Copy full SHA for a241032
Sources/swift-help/main.swift
@@ -140,7 +140,11 @@ struct SwiftHelp: ParsableCommand {
140
case .subcommand(let subcommand):
141
// Try to find the subcommand adjacent to the help tool.
142
// If we didn't find the tool there, let the OS search for it.
143
+#if os(Windows)
144
+ let execName = "swift-\(subcommand.rawValue).exe"
145
+#else
146
let execName = "swift-\(subcommand.rawValue)"
147
+#endif
148
let subcommandPath = Process.findExecutable(
149
CommandLine.arguments[0])?
150
.parentDirectory
0 commit comments