Skip to content

Commit

Permalink
reword
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 8, 2024
1 parent 758c9a9 commit 6f50881
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/make_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
parser.add_argument('--package', '-p', dest='package_limit', default=None, nargs='+',
choices=['core', 'gui', 'server', 'analysis', 'processing', '_3d'],
help='limit the build of the docs to one package (core, gui, server, analysis, processing, 3d) ')
parser.add_argument('--class', '-c', dest='class_limit', default=None, nargs='+',
parser.add_argument('--class', '-c', dest='single_class', default=None, nargs='+',
help='limit the build of the docs to a single class')
args = parser.parse_args()

Expand Down Expand Up @@ -185,9 +185,9 @@ def extract_package_classes(package):
for class_name in dir(package):
if class_name.startswith('_'):
continue
if args.class_limit:
if args.single_class:
found = False
for _class in args.class_limit:
for _class in args.single_class:
if class_name.startswith(_class):
found = True
break
Expand Down

0 comments on commit 6f50881

Please sign in to comment.