timetrace icon indicating copy to clipboard operation
timetrace copied to clipboard

Idea: what's the proper way to input time duration when we add records?

Open RedemptionC opened this issue 3 years ago • 1 comments

for now, I need to input start time and end time,it's somewhat tedious how do you do this ? maybe we could add a flag to enable us adding records by just providing a start time or a end time,plus a time duration?

RedemptionC avatar Sep 13 '21 06:09 RedemptionC

So do you have those two possibilities in mind?

By start + end time:

timetrace create record <HH:MM> <HH:MM>

By start time + duration:

timetrace create record <HH:MM> --duration 1h30m

If so, we could add the --duration/-d option and require that option if only one command argument - the start time - is given. However, create record should only be used to create belated records that you've forgotten to track, so in most cases you probably will know the end time.

dominikbraun avatar Sep 14 '21 06:09 dominikbraun