hnarayanan / shpotify

A command-line interface to Spotify.
https://harishnarayanan.org/projects/
2.01k stars 153 forks source link

Version command #59

Open ericmarkmartin opened 8 years ago

ericmarkmartin commented 8 years ago

For the sake of debugging and compliance with CLI standards, a version command of some sort should be included in the shpotify API.

Possible ideas for the command syntax (multiple different syntaxes can be used):

tpritc commented 8 years ago

I like spotify -v and spotify --version.

hnarayanan commented 8 years ago

Agree with @tpritc.

ericmarkmartin commented 8 years ago

I also agree with @tpritc: they are the most standard and thus the most predictable.

ericmarkmartin commented 8 years ago

Essentially I'm debating whether to go with the simple version output (like Python):

$ python --version
Python 3.4.3

Or something with a license and other info:

$ bash --version
GNU bash, version 4.3.46(1)-release (x86_64-apple-darwin14.5.0)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I'm probably overthinking this, but I would rather just get it right the first time. What do you guys think about this?

In the meantime I'll just post a PR with a simple version command, and if that's what you guys want, we can merge and be done with this issue.

ericmarkmartin commented 8 years ago

Added PR #64

hnarayanan commented 8 years ago

Still reeling from the last flurry of commits and the release. Will get to this in time.