[stable-2.14] Exclude internal options from man pages and docs (#81360) (#81362)

(cherry picked from commit fead654671)
pull/81368/head
Matt Clay 2 years ago committed by GitHub
parent b660c7ec1e
commit aaeb2c0b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Exclude internal options from man pages and docs.

@ -50,6 +50,8 @@ def get_options(optlist):
opts = []
for opt in optlist:
if opt.help == argparse.SUPPRESS:
continue
res = {
'desc': opt.help,
'options': opt.option_strings

Loading…
Cancel
Save