diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-05-23 10:40:16 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-05-23 10:40:16 +0100 |
| commit | ed08e75cd73de0f87407062858b43813fe3c1c02 (patch) | |
| tree | b6fdbb48ec198166cd2043e3ff6599566c94d507 /main.go | |
| parent | 0cfebd0edada2c5d0bca646ef6249600fbb84f0d (diff) | |
Fix flag usage message
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |
