add: command not working
gaviriar opened this issue · comments
Hi,
I am testing out the cli and when I try to use the add
command I just see the help menu printed
Example command:
toggl add "Code reviews, and week prep" :Company @Project
Whereas when I start
a new task to be logged:
toggl start "Code reviews, and week prep" :Company @Project
It works.
Seems like the add command line argument is not being picked up. Any ideas?
Hey there,
hmm well from the example you gave I can see you are not following the syntax of add
command so that should be reason why the help is printed ;-)
You have to follow one of the two following syntax:
add DESCR [:WORKSPACE] [@PROJECT] START_DATETIME ('d'DURATION | END_DATETIME)
add DESCR [:WORKSPACE] [@PROJECT] 'd'DURATION
You are missing either start time & duration/end time or just duration ;-)
Let me know if that solved your problem...
Oops! Apologies, thats completely my fault there I was using the command incorrectly.
Thanks for pointing that out.
No worries, I'm happy that it solved the problem. ;-)
Btw. I'm working on rewriting this app, so stay tuned for better usability, also if you would have some feedback on what should be added/changed please let me know!