Skip to content

Commit 0d3b4e2

Browse files
author
Roopa
committed
Added forbidden_option_attrs
1 parent c7da1f0 commit 0d3b4e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

click_option_group/_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ class AllOptionGroup(OptionGroup):
360360
- All options from the group must be set or None must be set.
361361
"""
362362

363+
@property
364+
def forbidden_option_attrs(self) -> ty.List[str]:
365+
return ['required', 'hidden']
366+
363367
@property
364368
def name_extra(self) -> ty.List[str]:
365369
return super().name_extra + ['all_or_none']

0 commit comments

Comments
 (0)