Skip to content

Commit

Permalink
click doesn't handle mutually exclusive flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianegli committed May 5, 2022
1 parent 6e0ab52 commit de5dcb7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nf_core/modules/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def _parameter_compatibility_check(self):
- Either `--preview` or `--save_diff` can be specified, not both.
"""

# Can't this be handled by click with mutually exclusive parameters?
if self.save_diff_fn and self.show_diff:
raise UserWarning("Either `--preview` or `--save_diff` can be specified, not both.")

Expand Down

0 comments on commit de5dcb7

Please sign in to comment.