Describe the bug
When using the -P or --private arguments for sphinx-apidoc the private methods are not listed in the resulting documentation.
To Reproduce
I run sphinxcontrib-apidoc in my project but the same occurs when using sphinx-apidoc directly from my tox file.
sphinx-apidoc -P -o doc/source/source_documentation radloggerpy/tests
sphinx-build -W -b html doc/source doc/build/html
Expected behavior
I expect the doc/source/source_documentation to contain source code documentation including private methods and attributes. However, the private methods and attributes are not included in the documentation even though they have documentation.
Your project
https://github.com/Dantali0n/radloggerpy
Screenshots
This screenshot shows the documentation of a method that is private:

This screenshot shows that the documentation is missing from the generated output:

Environment info
Additional context
The behavior is the same if -P or --private is used.
I first submitted the bug to sphincontrib-apidoc here is the reference:
https://github.com/sphinx-contrib/apidoc/issues/14
+1 I have the same issue, I am using sphinx v2.3.1 and when using sphinx-apidoc with option -P or --private is not picking the private members.
Working way to get the private methods into the sphinx htmls is using the autodoc_default_options in _config.py_ like below:
autodoc_default_options = {'private-members': True}
Thank you for reporting. I just made a PR #7066 to fix this. But I'm not familiar with apidoc. Can anyone try this please? You can use this with pip install git+https://github.com/tk0miya/sphinx@6899_apidoc_private_members command.
Just tested, works for me :+1:
Tested and verified, thanks @tk0miya
Thank you for confirmation!
Merged. Thank you for your help!