aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/krino/new.go')
-rw-r--r--cmd/krino/new.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/krino/new.go b/cmd/krino/new.go
index 1cd89a6..37f2418 100644
--- a/cmd/krino/new.go
+++ b/cmd/krino/new.go
@@ -18,6 +18,9 @@ func cmdNew(g *globals, args []string, stdout, stderr io.Writer) int {
if code, ok := parse(fs, args, stdout, stderr); !ok {
return code
}
+ if g.minAgeSet {
+ return usageError(stderr, "--min-age applies only to sorting and explain")
+ }
if fs.NArg() != 2 {
return usageError(stderr, "usage: krino new NAME PATH")
}