Skip to content

Commit 898d1ae

Browse files
fix: 🐛 Declare GenerateManualPlugin as plugin product (#456)
`ArgumentParser` 1.1.3 includes a SwiftPM plugin for generating man pages. However, this plugin is not visible to packages that declare `ArgumentParser` as a package dependency. Defining a product of type `plugin` in the package manifest will solve that. Running `swift package plugin --list` for a package, that declares `ArgumentParser` as a package dependency, will then list the `GenerateManualPlugin` ``` ‘experimental-generate-manual’ (plugin ‘GenerateManualPlugin’ in package ‘swift-argument-parser’) ``` Closes: #455
1 parent df9ee66 commit 898d1ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

[email protected]

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ var package = Package(
1818
.library(
1919
name: "ArgumentParser",
2020
targets: ["ArgumentParser"]),
21+
.plugin(
22+
name: "GenerateManualPlugin",
23+
targets: ["GenerateManualPlugin"]),
2124
],
2225
dependencies: [],
2326
targets: [

0 commit comments

Comments
 (0)