kubectl 描述未知 shorthand 标志 -o

kubectl describe unknown shorthand flag -o

我认为 -o 应该是 kubectl 的通用选项。 但是,当我 运行 以下 kubectl 命令时,我以某种方式收到以下错误。

你能告诉我为什么吗?谢谢。

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

-o | --output不是通用标志,默认不包含在kubectl flags (1.18) and kubectl describe does not support the --output (or shorthand -o) flag.