krew: Inconsistent program name in --help message
See the end, it doesn’t say kubectl krew
$ kubectl krew
[...]
Flags:
-h, --help help for krew
-v, --v Level number for the log level verbosity
Use "krew [command] --help" for more information about a command.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Add custom usage template for cobra command so that usage will display 'kubectl krew' instead of just 'krew' See issue #521 for more details: https://github.com/kubernetes-sigs/krew/issues/521 — committed to brianpursley/krew by brianpursley 4 years ago
- Add custom usage template for cobra command so that usage will display 'kubectl krew' instead of just 'krew' See issue #521 for more details: https://github.com/kubernetes-sigs/krew/issues/521 — committed to brianpursley/krew by brianpursley 4 years ago
- Add custom usage template for cobra command so that usage will display 'kubectl krew' instead of just 'krew' See issue https://github.com/kubernetes-sigs/krew/issues/521 for more details — committed to brianpursley/krew by brianpursley 4 years ago
- Add custom usage template for cobra command so that usage will display 'kubectl krew' instead of just 'krew' See issue https://github.com/kubernetes-sigs/krew/issues/521 for more details — committed to brianpursley/krew by brianpursley 4 years ago
- Add custom usage template for cobra command so that usage will display 'kubectl krew' instead of just 'krew' (#547) See issue https://github.com/kubernetes-sigs/krew/issues/521 for more details — committed to kubernetes-sigs/krew by brianpursley 4 years ago
If the patch is trivial btw I might be able to get it merged. Just let me know.
Has anyone asked cobra yet?
I worked up a little example that I think illustrates the problem from cobra’s perspective:
main.go
Default help for root command when running without a command:
Help for a specific command: