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 non-zero exit codes for invalid commands #99

Closed
dkniffin opened this issue Apr 29, 2018 · 4 comments
Closed

Return non-zero exit codes for invalid commands #99

dkniffin opened this issue Apr 29, 2018 · 4 comments

Comments

@dkniffin
Copy link
Contributor

To help with scripting, it'd be nice if shpotify returned a non-zero [exit code](collaboratively via the Slack messaging app.) gave when given invalid commands. Right now it returns an exit code of 0, with a Usage message.

Also, just FYI, this is for a project I'm working on called Maestro, a tool for controlling a Spotify player collaboratively via the Slack messaging app. I'm in the process of rewriting it to heavily rely on shpotify.

@hnarayanan
Copy link
Owner

Please contribute this if you know how to! 😊

@dkniffin
Copy link
Contributor Author

I'll give it a shot!

@hnarayanan
Copy link
Owner

Thank you!

@dkniffin
Copy link
Contributor Author

Done (#100)

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