Skip to content

Commit

Permalink
entries: edit should use entry date as default (instead of today's date)
Browse files Browse the repository at this point in the history
  • Loading branch information
phiros committed Apr 4, 2019
1 parent 94bed46 commit 47bf5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {
entriesCreateCommand.Flags().StringVarP(&createServiceId, "serviceid", "s", "", "service id for time entry (HINT: use the 'service' sub-command to find the id)")
entriesCommand.AddCommand(entriesCreateCommand)
// edit
entriesEditCommand.Flags().StringVarP(&editDate, "date", "D", today.String(), "day for which to edit entry (in YYYY-MM-DD format)")
entriesEditCommand.Flags().StringVarP(&editDate, "date", "D", "", "day for which to edit entry (in YYYY-MM-DD format)")
entriesEditCommand.Flags().StringVarP(&editDuration, "duration", "d", "", "duration of entry (format examples: '1h15m' or '300m' or '6h')")
entriesEditCommand.Flags().StringVarP(&editNote, "note", "n", "", "a note describing what was worked on")
entriesEditCommand.Flags().StringVarP(&editTimeEntryId, "id", "i", "", "the time entry id to edit")
Expand Down

0 comments on commit 47bf5d6

Please sign in to comment.