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

Do not display bash commands if local flag specified #288

Merged
merged 3 commits into from
Jun 7, 2016

Conversation

eparis
Copy link
Collaborator

@eparis eparis commented Jun 3, 2016

If a user specified a non-persistent flag to a command they cannot then call a subcommand. Thus we should not display subcommands in the bash completions.

This also changes things such that we show both 'required flags' and 'subcommands' if a 'required flag' exists. Since you may be able to run a subcommand instead of use the 'required' flag.

eparis added 3 commits June 3, 2016 10:18
If a user specifies a flag to a command which doesn't make sense to a
subcommand do not show subcommands as a suggestion.

This also changes things to show both 'required flags' and 'commands'
instead of only 'required flags'
@eparis
Copy link
Collaborator Author

eparis commented Jun 3, 2016

@elyscape

@elyscape
Copy link

elyscape commented Jun 6, 2016

Ooh, nice.

@eparis
Copy link
Collaborator Author

eparis commented Jun 7, 2016

as in merge it and close #287 or you think #287 is better, or you want to look more?

@elyscape
Copy link

elyscape commented Jun 7, 2016

This one looks fine to me.

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

Successfully merging this pull request may close these issues.

2 participants