Skip to content

Commit 883a56b

Browse files
committed
try to fix auto-completion using 'resilient_prsing' flag
1 parent 55c8111 commit 883a56b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

click_option_group/_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def group(self) -> 'OptionGroup':
4646

4747
def handle_parse_result(self, ctx, opts, args):
4848
with augment_usage_errors(ctx, param=self):
49-
self.group.handle_parse_result(self, ctx, opts)
49+
if not ctx.resilient_parsing:
50+
self.group.handle_parse_result(self, ctx, opts)
5051
return super().handle_parse_result(ctx, opts, args)
5152

5253
def get_help_record(self, ctx: click.Context):

0 commit comments

Comments
 (0)