Skip to content

Commit

Permalink
validate_force_store_option utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
ivadym committed Jul 29, 2024
1 parent 17b9278 commit 7ad3ea4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cg/cli/workflow/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""CLI utility methods."""

import click


def validate_force_store_option(force: bool, comment: str):
"""Validate that the --comment option is provided when --force is set."""
if force and not comment:
raise click.UsageError("The --comment option is required when --force is used")

0 comments on commit 7ad3ea4

Please sign in to comment.