Skip to content

Commit

Permalink
we can replace the second deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jun 5, 2024
1 parent e67b119 commit 4948f5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aiida/cmdline/groups/verdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def parse_args(self, ctx: click.Context, args: t.List[str]) -> t.List[str]:

return super().parse_args(ctx, args)

def invoke(self, ctx: click.Context) -> t.Any:
"""Overwrites the deprecation warning that is now printed in parse_args"""
if self.callback is not None:
return ctx.invoke(self.callback, **ctx.params)


class VerdiCommandGroup(click.Group):
"""Subclass of :class:`click.Group` for the ``verdi`` CLI.
Expand Down

0 comments on commit 4948f5f

Please sign in to comment.