kubectl describe unknown shorthand flag -o

Viewed 4507

I think -o is supposed be an universal option for kubectl. But, somehow I get the following error when I run the following kubectl command.

Can you please tell me why? Thank you.

mamun$ kubectl describe secret -n development serviceaccount-foo -o yaml
Error: unknown shorthand flag: 'o' in -o
See 'kubectl describe --help' for usage.
2 Answers

try this:

kubectl describe secret -n development serviceaccount-foo -- -o yaml
Related