From 202d6ca0dfea5afe6746fd8a36013dcc2e6709e7 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sun, 18 Oct 2026 11:47:25 +0530 Subject: [PATCH] Reject undo without tweak names --- Sources/removemacai/TweakCommands.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/removemacai/TweakCommands.swift b/Sources/removemacai/TweakCommands.swift index 6b9cf42..ca592bf 100644 --- a/Sources/removemacai/TweakCommands.swift +++ b/Sources/removemacai/TweakCommands.swift @@ -58,6 +58,10 @@ enum TweakCommands { } static func undo(ids: [String], dryRun: Bool, yes: Bool) -> Bool { + guard !ids.isEmpty else { + Term.fail("name the tweaks to undo") + } + let s = Snapshot() var wanted = s.appliedTweaks for id in ids {