Exclude internal options from man pages and docs (#81360)

pull/81365/head
Matt Clay 1 year ago committed by GitHub
parent 6db006a5fa
commit fead654671
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.

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

Loading…
Cancel
Save