-
-
Notifications
You must be signed in to change notification settings - Fork 585
Open
Description
def wrap(self, ctx, func):
gco = ctx.find_object(GlobalContextObject)
if gco is not None and gco.output is not None:
output_decorator = gco.output
elif self.default_output:
output_decorator = self.default_output
else:
output_decorator = format_output(f"Running command {self.command_name}")
# Remove skip_autodetect before constructing the click.command
self.kwargs.pop("skip_autodetect", None)
for decorator in self.decorators:
func = decorator(func)
func = output_decorator(func)
return click.command(self.command_name, **self.kwargs)(func)
click_common.py
içindeki satırı bu şekilde değiştirince
Command.__init__() got an unexpected keyword argument 'default_output'
bu sorunu çözüldü
"The following issue was resolved by changing default_output=default_output
to default_output=format_output
: Command.init() got an unexpected keyword argument 'default_output'."
Metadata
Metadata
Assignees
Labels
No labels