fix that beginning of help text is cut off for apply and replace --filename flag

Kubernetes-commit: d216b3433d018fae95efdf987002dd8c4d006ae6
This commit is contained in:
peizhouyu 2022-07-28 11:33:34 +08:00 committed by Kubernetes Publisher
parent bde07663c0
commit 975bff8512
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ func NewApplyFlags(f cmdutil.Factory, streams genericclioptions.IOStreams) *Appl
return &ApplyFlags{
Factory: f,
RecordFlags: genericclioptions.NewRecordFlags(),
DeleteFlags: delete.NewDeleteFlags("that contains the configuration to apply"),
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to apply."),
PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme),
Overwrite: true,

View File

@ -106,7 +106,7 @@ type ReplaceOptions struct {
func NewReplaceOptions(streams genericclioptions.IOStreams) *ReplaceOptions {
return &ReplaceOptions{
PrintFlags: genericclioptions.NewPrintFlags("replaced"),
DeleteFlags: delete.NewDeleteFlags("to use to replace the resource."),
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to replace."),
IOStreams: streams,
}