Skip to content

Commit

Permalink
fix: make mutually exclusive always
Browse files Browse the repository at this point in the history
  • Loading branch information
ook37 committed Jan 10, 2025
1 parent 2c45562 commit f69bdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def handle_add(args):
print(f"Error: Invalid architectures given: {', '.join(invalid_architectures)}")
print(f"Valid architectures are: {', '.join(valid_architectures)}")
return
if 'any' in architectures and 'all' in architectures:
if ('any' in architectures or 'all' in architectures) and len(architectures) > 1:
print(f"Error: 'any' and 'all' are mutually exclusive.")
return
else:
Expand Down

0 comments on commit f69bdce

Please sign in to comment.