Skip to content

Commit

Permalink
fix: 🐛 Declare GenerateManualPlugin as plugin product (#456)
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
MarcoEidinger committed Aug 13, 2022
1 parent df9ee66 commit 898d1ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Package@swift-5.6.swift
Expand Up @@ -18,6 +18,9 @@ var package = Package(
.library(
name: "ArgumentParser",
targets: ["ArgumentParser"]),
.plugin(
name: "GenerateManualPlugin",
targets: ["GenerateManualPlugin"]),
],
dependencies: [],
targets: [
Expand Down

0 comments on commit 898d1ae

Please sign in to comment.