Skip to content

Commit 7218688

Browse files
committed
Actually remove the --output option — the previous commit removed the parameter to the plugin invocation and made the option not do anything, but this removes it from swift package plugin as well.
1 parent 744d13a commit 7218688

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/Commands/SwiftPackageTool.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,6 @@ extension SwiftPackageTool {
882882
help: "Target(s) to which the plugin command should be applied")
883883
var targetNames: [String] = []
884884

885-
@Option(name: .customLong("output"),
886-
help: "Optional output directory passed to the command plugin")
887-
var outputPath: String?
888-
889885
@Flag(name: .customLong("list"),
890886
help: "List the available plugin commands")
891887
var listCommands: Bool = false
@@ -941,9 +937,6 @@ extension SwiftPackageTool {
941937
// If no targets were specified, default to all the applicable ones in the package.
942938
let targetNames = targetNames.isEmpty ? package.targets.filter(\.isEligibleForPluginCommand).map(\.name) : targetNames
943939

944-
// If the user specified an output path, we validate it.
945-
let outputPath = try self.outputPath.map{ try AbsolutePath(validating: $0) }
946-
947940
// Find the targets (if any) specified by the user. We expect them in the root package.
948941
var targets: [String: ResolvedTarget] = [:]
949942
for target in package.targets where targetNames.contains(target.name) {

0 commit comments

Comments
 (0)