Skip to content

Conversation

mc-dorzo
Copy link
Contributor

…deline from CLI

@mc-dorzo mc-dorzo requested a review from kichanyurd January 15, 2025 22:20
@@ -2468,6 +2476,8 @@ def guideline_update(
check: bool,
connect: bool,
) -> None:
assert condition or action
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a good way to do it. If someone runs it with neither --action or --condition, instead of getting a clear error message that at least one is required, they will get an assertion error.

@mc-dorzo mc-dorzo force-pushed the feature/mc-516-allow-only-specifying-guideline-condition-or-action-when branch from ee68cfb to 58ebb69 Compare January 17, 2025 17:35
@mc-dorzo mc-dorzo merged commit 7fe08d4 into develop Jan 17, 2025
1 of 2 checks passed
@mc-dorzo mc-dorzo deleted the feature/mc-516-allow-only-specifying-guideline-condition-or-action-when branch January 17, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants