Skip to content

Commit

Permalink
Update src/entry_point.py
Browse files Browse the repository at this point in the history
Co-authored-by: jaimergp <[email protected]>
  • Loading branch information
marcoesters and jaimergp authored Nov 26, 2024
1 parent 404d331 commit ad1c8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __call__(self, parser, namespace, values, option_string=None):

if args.command != "uninstall":
group_args = getattr(g, "_group_actions")
if all(getattr(args, arg.dest) is None for arg in group_args):
if all(getattr(args, arg.dest, None) is None for arg in group_args):
required_args = [arg.option_strings[0] for arg in group_args]
raise argparse.ArgumentError(
f"one of the following arguments are required: {'/'.join(required_args)}"
Expand Down

0 comments on commit ad1c8d8

Please sign in to comment.