aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index a8bb44c..590aff2 100644
--- a/main.go
+++ b/main.go
@@ -180,11 +180,11 @@ func main() {
}
if until.t.IsZero() {
if duration == 0 {
- log.Fatalln("error: -end-date is required when no -d is passed")
+ log.Fatalln("error: -na is required when no -d is passed")
}
until.t = from.t.Add(duration)
} else if duration != 0 {
- log.Println("warning: ignored -d as -end-date was passed")
+ log.Println("warning: ignored -d as -na was passed")
}
if until.t.Before(from.t) {
log.Fatalln("error: end date is before the start date")