aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-05-23 10:40:16 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-05-23 10:40:16 +0100
commited08e75cd73de0f87407062858b43813fe3c1c02 (patch)
treeb6fdbb48ec198166cd2043e3ff6599566c94d507
parent0cfebd0edada2c5d0bca646ef6249600fbb84f0d (diff)
Fix flag usage message
-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")