Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RedemptionC opened this issue Sep 13, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@RedemptionC
Copy link
Contributor

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?

@dominikbraun dominikbraun added enhancement New feature or request question Further information is requested labels Sep 14, 2021
@dominikbraun
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
2 participants