mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #39053 from tanshanshan/fix-help2
Automatic merge from submit-queue (batch tested with PRs 39053, 36446) fix --no-header help description **What this PR does / why we need it**: the current description is > --no-headers=false: When using the default or custom-column output format, don't print headers. but , > kubectl get po the header has been printing , so the default condition is printing headers. > kubectl get po --no-headers=true the header has been not printing > kubectl get po --no-headers=false the header has been printing So , I fixed the help description Thanks. **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
commit
897c48e75f
@ -52,7 +52,7 @@ func AddOutputFlags(cmd *cobra.Command) {
|
|||||||
|
|
||||||
// AddNoHeadersFlags adds no-headers flags to a command.
|
// AddNoHeadersFlags adds no-headers flags to a command.
|
||||||
func AddNoHeadersFlags(cmd *cobra.Command) {
|
func AddNoHeadersFlags(cmd *cobra.Command) {
|
||||||
cmd.Flags().Bool("no-headers", false, "When using the default or custom-column output format, don't print headers.")
|
cmd.Flags().Bool("no-headers", false, "When using the default or custom-column output format, don't print headers (default print headers).")
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrintSuccess prints message after finishing mutating operations
|
// PrintSuccess prints message after finishing mutating operations
|
||||||
|
Loading…
Reference in New Issue
Block a user