Skip to content

Commit

Permalink
add check for --tar without --clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmathis committed Nov 15, 2023
1 parent 982426d commit 3ffc9aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emmet-cli/emmet/cli/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ def backup(ctx, reorg, clean, check, exhaustive, force_new, tar): # noqa: C901
logger.error("Not running --clean without --check enabled.")
return ReturnCodes.ERROR

if not clean and tar;
logger.error("Not running --tar wihout --clean enabled.")
return ReturnCode.ERROR

if not reorg:
check_pattern()

Expand Down

0 comments on commit 3ffc9aa

Please sign in to comment.