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

return an error in case of invalid command #298

Open
hydrargyrum opened this issue Feb 2, 2022 · 3 comments
Open

return an error in case of invalid command #298

hydrargyrum opened this issue Feb 2, 2022 · 3 comments

Comments

@hydrargyrum
Copy link

% topydo foobar
% echo $?
0

no error message, not even a nonzero status code, it's easy to mistake topydo add foobar for topydo foobar, or topydo done 123 for topydo do 123 and we think it worked but it didn't.

@davesteele
Copy link
Contributor

Note that this matches the behavior of the classic todo.txt cli.

@hydrargyrum
Copy link
Author

hydrargyrum commented Feb 3, 2022

Ok, but no error message or code is a bad behaviour that is very misleading. Multiple times I forgot the add subcommand and so I "lost" some todo entries because of the absence of a simple feedback telling me no command has been recognized.

In the above example, it could be as simple as error: "foobar" command is not recognized

@davesteele
Copy link
Contributor

Perhaps a message "No tasks found", with maybe an error return, would help.

mariabui added a commit to mariabui/topydo that referenced this issue May 4, 2023
topydo#298: return an error in case of invalid command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants