Skip to content

Commit

Permalink
fix: Multiple enum locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sizmailov committed Sep 27, 2023
1 parent 16521f8 commit 1ce30d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pybind11-stubgen [-h]
[--ignore-invalid-identifiers REGEX]
[--ignore-unresolved-names REGEX]
[--ignore-all-errors]
[--enum-class-locations [REGEX:LOC ...]]
[--enum-class-locations REGEX:LOC]
[--numpy-array-wrap-with-annotated|
--numpy-array-remove-parameters]
[--print-invalid-expressions-as-is]
Expand Down
2 changes: 1 addition & 1 deletion pybind11_stubgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def regex_colon_path(regex_path: str) -> tuple[re.Pattern, str]:
"--enum-class-locations",
dest="enum_class_locations",
metavar="REGEX:LOC",
action="append",
default=[],
nargs="*",
type=regex_colon_path,
help="Locations of enum classes in "
"<enum-class-name-regex>:<path-to-class> format. "
Expand Down

0 comments on commit 1ce30d4

Please sign in to comment.