You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New upcoming hidden option in Click.Option is not hidden from bash completion #1058
I don't know whether this is intended behavior or not but I was just trying out new upcoming release 7.0 for hidden option and autocompletion to Click.Option and hidden option hides option from help message but it shows up in bash completion.
However it will be good if we can hide it from bash completion also, so that hidden option is actually hidden from everywhere.
So there is a choice to be made here about behavior. If a param is hidden I agree that tab completions shouldn't reveal the presence of this parameter if it is partially typed in but once a user types it in fully should click allow autocompletion of the parameter's possible values? I lean toward yes, because once a user has typed in the parameter they wish to use it and it should no longer act as "hidden". The same goes for commands and sub commands that are hidden. If a command group is marked as hidden it should not show up un completion results when partially typed in but once typed in all commands under it should complete as normal. I have a prototyped branch working with this behavior, will finish it up tomorrow, rebase and submit a PR.
Activity
davidism commentedon Jul 2, 2018
@stopthatcow
stopthatcow commentedon Jul 2, 2018
Should be a simple fix. I will take a look this evening.
stopthatcow commentedon Jul 3, 2018
So there is a choice to be made here about behavior. If a param is hidden I agree that tab completions shouldn't reveal the presence of this parameter if it is partially typed in but once a user types it in fully should click allow autocompletion of the parameter's possible values? I lean toward yes, because once a user has typed in the parameter they wish to use it and it should no longer act as "hidden". The same goes for commands and sub commands that are hidden. If a command group is marked as hidden it should not show up un completion results when partially typed in but once typed in all commands under it should complete as normal. I have a prototyped branch working with this behavior, will finish it up tomorrow, rebase and submit a PR.
davidism commentedon Jul 3, 2018
Yes, only stop completion of the token itself.
stopthatcow commentedon Jul 4, 2018
See #1061.
Merge pull request #1061 from stopthatcow/feature/1058
Merge #1576
Merge #37
Update click to 7.0 (#97)