-
Notifications
You must be signed in to change notification settings - Fork 18
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
improve tab completions #20
Conversation
* nodenv/master: tab complete --help no sense tab-completing the short-form flag handle --complete in case statement use case for verbose flag (and add longform flag) add 'help' as first-class option add nodenv shims to nodenv-each completion
verbose=1 | ||
shift | ||
;; | ||
help | --help ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 👎 about supporting rbenv each help
(no dashes) usage. All flags should begin with a dash at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. not sure what was in my head at the time
|
shift | ||
;; | ||
--help ) | ||
rbenv-help --usage each |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should display full help for each
, not just --usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the overall plan is --help
prints full help, while minimal --usage is only printed when in error? There is inconsistency in this regard, so once decided in general, we can make the rest eventually consistent.
Thanks! |
help
,--help
as subcommand for usage