Skip to content

Commit

Permalink
Add changelog entry and help message for --public-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Dec 6, 2024
1 parent 59aaf29 commit a4ab38a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.2.0

* Add support for module-level Haddock attribute `Visibility: Public` in order to filter modules.
The command-line argument `--public-only` can be combined with `--modules-ignore-list`.
## 0.1.1.0

* Add support for user-supplied ignore lists of modules ([#18](https://github.com/Kleidukos/print-api/pull/18))
2 changes: 1 addition & 1 deletion src/PrintApi/CLI/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ parseOptions =
(long "package-name" <> short 'p' <> metavar "PACKAGE NAME" <> help "Name of the package")
<*> optional
(option osPathOption (long "modules-ignore-list" <> metavar "FILE" <> help "Read the file for a list of ignored modules (one per line)"))
<*> switch (long "public-only")
<*> switch (long "public-only" <> help "Process modules with `Visibility: Public` set in their Haddock attributes.")

withInfo :: Parser a -> String -> ParserInfo a
withInfo opts desc =
Expand Down

0 comments on commit a4ab38a

Please sign in to comment.