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

(cherry picked from commit fead654671)
pull/81367/head
Matt Clay 2 years ago committed by GitHub
parent 66f04c276a
commit 94281e77f0
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