-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Sub commands should show separate help messages when used incorrectly #63
Comments
I like the idea of help commands, as it really helps to expose functionality in a user interface that has little affordance to help the user. For your |
@tpritc, I just did some digging and I think you're right about With that decided, we could relatively easily add to the help command to implement this functionality, but I'm wondering if, in the pursuit of modularity and saving our future selves time as opposed to our current selves, we shouldn't start splitting sub-commands up into their own files. Of course, for anything so major we'll need @hnarayanan to take a look, but some preliminary discussion wouldn't hurt. |
I will take a look in a bit. I am trying to focus on some other projects right now, and they're requiring a lot of my concentration. :) |
@hnarayanan thanks for checking in. Don't worry about it: I'm sure you have plenty of other important things to focus on at any given moment and I'm not in a rush on any of these issues. |
I know it's been like a 100 years, but if anyone is willing to look at this, I am happy to talk about it. |
Hey, it’s been a while. I’m actually on spring break now and would be down to tackle this |
Currently,
spotify vol
will give you a message if you use the command incorrectly:I think it would be wise to make all commands conform to this, because otherwise things like this happen:
I suppose that for most commands, this isn't particularly helpful (
status
,next
, etc) but for some current commands and especially in the future, I think it would be helpful as new commands are implemented.Additionally, I think that sub commands should allow this help menu to be invoked with "help" parameter, eg:
Maybe that "should" should be changed to "can", but at that point I'm just messing with semantics.
Of course, if we decide to go this route,
spotify play
poses an issue:which totally skipped my mind. Unfortunately, this is a completely valid usage, so we'll have to think of a way to deal with that...
Of course, we could also implement a synonymous -h flag for sub commands.
Side note, and maybe I'm getting too ambitious (especially for
1.3.0
) but just screwing around with the implementation of this sort of a feature is indicating to me that maybe it's time for the sub commands to separated out into their own files? I don't know.Thoughts?
The text was updated successfully, but these errors were encountered: