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

Bash completion displays hidden and deprecated flags #19256

Closed
nak3 opened this issue Apr 7, 2018 · 3 comments
Closed

Bash completion displays hidden and deprecated flags #19256

nak3 opened this issue Apr 7, 2018 · 3 comments

Comments

@nak3
Copy link
Contributor

nak3 commented Apr 7, 2018

Upstream fixed it 2 years ago - spf13/cobra#313, but origin still has the issue (because origin is using older version)

origin/glide.lock

Lines 1064 to 1065 in 35ba454

- name: github.com/spf13/cobra
version: f62e98d28ab7ad31d707ba837a966378465c7b57

Steps to reproduce (Following flags are the examples)

$ oc new-build --build-[TAB]
--build-arg=       --build-env=       --build-env-file=  --build-secret=
                        ^                  ^
			+--marked hidden	   +--marked hidden

$  oc new-app --image[TAB]
--image=         --image-stream=
   ^
   +--- deprecated
@php-coder
Copy link
Contributor

@openshift/sig-developer-experience

@soltysh
Copy link
Contributor

soltysh commented Apr 12, 2018

I've just double checked the completions file in https://github.com/openshift/origin/tree/master/contrib/completions/ and they are just fine. The aforementioned cobra fix is already included and none of the flags you've mentioned are there.

I'd suggest you verify if the correct completions are properly installed on your system.

@soltysh soltysh closed this as completed Apr 12, 2018
@nak3
Copy link
Contributor Author

nak3 commented Apr 30, 2018

Yes, the cobra was updated by #19137 last month. Thank you.

I'd suggest you verify if the correct completions are properly installed on your system.

I installed and used correct completions. But the #19137 was merged between my report and your verify.. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants