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

add: command not working #80

Closed
gaviriar opened this issue Mar 5, 2018 · 3 comments
Closed

add: command not working #80

gaviriar opened this issue Mar 5, 2018 · 3 comments

Comments

@gaviriar
Copy link

gaviriar commented Mar 5, 2018

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?

@AuHau
Copy link
Owner

AuHau commented Mar 5, 2018

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...

@gaviriar
Copy link
Author

gaviriar commented Mar 5, 2018

Oops! Apologies, thats completely my fault there I was using the command incorrectly.

Thanks for pointing that out.

@gaviriar gaviriar closed this as completed Mar 5, 2018
@AuHau
Copy link
Owner

AuHau commented Mar 5, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants