aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/undo.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/krino/undo.go')
-rw-r--r--cmd/krino/undo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/krino/undo.go b/cmd/krino/undo.go
index 4cefc82..1b5e6ae 100644
--- a/cmd/krino/undo.go
+++ b/cmd/krino/undo.go
@@ -50,6 +50,9 @@ func cmdUndo(g *globals, args []string, stdout, stderr io.Writer) int {
if g.minAgeSet {
return usageError(stderr, "--min-age applies only to sorting and explain")
}
+ if code, refused := refuseUnusedFlags(g, stderr, "undo", true); refused {
+ return code
+ }
if g.yes && g.dry {
return usageError(stderr, "-y and -n cannot be used together")
}