diff --git a/CHANGELOG.md b/CHANGELOG.md index 356a134..a31049d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/src/PrintApi/CLI/Types.hs b/src/PrintApi/CLI/Types.hs index eabfc86..74414b5 100644 --- a/src/PrintApi/CLI/Types.hs +++ b/src/PrintApi/CLI/Types.hs @@ -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 =