aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/x/mi.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/x/mi.go b/cmd/x/mi.go
index 681be6b..05d917e 100644
--- a/cmd/x/mi.go
+++ b/cmd/x/mi.go
@@ -244,6 +244,10 @@ func (ae *miAddEvent) Execute(ctx context.Context, f *flag.FlagSet, _ ...interfa
return nil
})
+ if ae.endDate == "" {
+ ae.endDate = ae.startDate
+ }
+
_, err := time.Parse("2006-01-02", ae.endDate)
if err != nil {
fmt.Printf("error parsing date: %v\n", err)