I was expecting the ManPageGenerator to ignore "hidden" options the same way that the standard --help renderer ignores them, for example:
@Option(names = "--color", hidden = true)
public void setColor(ColorOptions color) {
// ...
}
This does NOT render when --help is used, but it IS rendered to the manpage doc:
--color=<color>
NOTE: hidden subcommands are rendered as well
@bdemers Thank you for reporting this!
This is an oversight and a bug.
Will you be able to provide a pull request for this?
I think I've got it, doing a bit more testing and I'll send a PR
Merged the PR. Thanks for the contribution!
There may be an edge case where options in an argument group (with header) are not hidden, while all other options are hidden; would be good to have a test case for that...
If you can take a look at this that would be great!