Skip to content

Commit 47bf5d6

Browse files
committed
entries: edit should use entry date as default (instead of today's date)
1 parent 94bed46 commit 47bf5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/entries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func init() {
4949
entriesCreateCommand.Flags().StringVarP(&createServiceId, "serviceid", "s", "", "service id for time entry (HINT: use the 'service' sub-command to find the id)")
5050
entriesCommand.AddCommand(entriesCreateCommand)
5151
// edit
52-
entriesEditCommand.Flags().StringVarP(&editDate, "date", "D", today.String(), "day for which to edit entry (in YYYY-MM-DD format)")
52+
entriesEditCommand.Flags().StringVarP(&editDate, "date", "D", "", "day for which to edit entry (in YYYY-MM-DD format)")
5353
entriesEditCommand.Flags().StringVarP(&editDuration, "duration", "d", "", "duration of entry (format examples: '1h15m' or '300m' or '6h')")
5454
entriesEditCommand.Flags().StringVarP(&editNote, "note", "n", "", "a note describing what was worked on")
5555
entriesEditCommand.Flags().StringVarP(&editTimeEntryId, "id", "i", "", "the time entry id to edit")

0 commit comments

Comments
 (0)