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 {